diff --git a/conf/seafile-server b/conf/seafile-server index b0b38dd..e4dfa2f 100644 --- a/conf/seafile-server +++ b/conf/seafile-server @@ -11,7 +11,7 @@ ### END INIT INFO # Change the value of "user" to your linux user name -user=www-data +user=SEAFILE_USER # Change the value of "script_path" to your path of seafile installation seafile_dir=SEAFILE_DIR diff --git a/scripts/install b/scripts/install index ea2fafa..7587765 100644 --- a/scripts/install +++ b/scripts/install @@ -117,6 +117,7 @@ ynh_replace_string WEBDAV_PORT $webdav_port $final_path/conf/seafdav.conf cp ../conf/seafile-server /etc/init.d ynh_replace_string SEAHUB_PORT $seahub_port /etc/init.d/seafile-server ynh_replace_string SEAFILE_DIR $final_path /etc/init.d/seafile-server +ynh_replace_string SEAFILE_USER $seafile_user /etc/init.d/seafile-server chmod +x /etc/init.d/seafile-server systemctl daemon-reload update-rc.d seafile-server defaults diff --git a/scripts/upgrade b/scripts/upgrade index 8447431..cc02315 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,6 +134,7 @@ config_nginx cp ../conf/seafile-server /etc/init.d ynh_replace_string SEAHUB_PORT $seahub_port /etc/init.d/seafile-server ynh_replace_string SEAFILE_DIR $final_path /etc/init.d/seafile-server +ynh_replace_string SEAFILE_USER $seafile_user /etc/init.d/seafile-server chmod +x /etc/init.d/seafile-server systemctl daemon-reload