Fix upgrade script

This commit is contained in:
Josué Tille 2017-09-30 18:14:22 +02:00
parent 7eaf3a540d
commit 2bbf89de67
3 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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