diff --git a/conf/systemd.service b/conf/systemd.service index e86e4c8..44a6c52 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Droppy: self-hosted file storage server +Description=Droppy: file storage server After=network.target [Service] @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart= __INSTALL_DIR__/droppy.js start -c __INSTALL_DIR__/config -f /home/yunohost.app/__APP__/files +ExecStart= __INSTALL_DIR__/droppy.js start -c __INSTALL_DIR__/config -f __DATA_DIR__/files AmbientCapabilities=CAP_NET_BIND_SERVICE Restart=always SyslogIdentifier=__APP__