Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added install to update-rc.d (optional)

  • Loading branch information...
commit f9a7fe2ddc36ade70a9704526c049ae9efc32141 1 parent c365b78
@asgrim authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 install.sh
View
10 install.sh
@@ -29,3 +29,13 @@ else
echo "Softlink directory-syncing-thing in the init.d directory"
ln -s /opt/directory-syncing-thing/directory-syncing-thing $INITSCRIPT
fi
+
+echo -n "Would you like to add to startup (y/n) : "
+read ADDSTART
+
+if [ "$ADDSTART" == "y" ]
+then
+ update-rc.d directory-syncing-thing defaults
+fi
+
+echo "Install complete."
Please sign in to comment.
Something went wrong with that request. Please try again.