-
Add this line to
~/.profile
export PATH=$HOME/bin:$PATH
-
Create
/etc/init.d/dropbox
-
Add the contents of the file below
-
Make the script executable and add it to the system startup
sudo chmod +x /etc/init.d/dropbox sudo update-rc.d dropbox defaults
-
You can safely ignore the following messages
update-rc.d: using dependency based boot sequencing insserv: warning: script 'dropbox' missing LSB tags and overrides
-
You can restart your server to test it. Use with caution though. I'd only do this on a dev box.
- Restart your Debian box
shutdown -r now
- Test if it worked:
~/bin/dropbox.py status
Install Access Control List
sudo apt-get install acl
Give www-data user read, write & execute access to dropbox files
setfacl -Rm u:www-data:rwx /root/Dropbox
Set as default, recursively to inherit these settings on newly created files
setfacl -dRm u:www-data:rwx /root/Dropbox
Install the GD Library
apt-get install php5-gd
-
Start by creating an entry in the sudoers list. You can name it whatever you want, "Webserver" can be named anything because any file in this directory is automatically included.
visudo -f /etc/sudoers.d/Webserver
-
Add the following to it:
www-data ALL = (root) NOPASSWD: /var/www/kirby-farm/conf/parse_clients.sh
-
press
control + x
then typeY
and hitenter