mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix upgrade script
This commit is contained in:
parent
7eaf3a540d
commit
2bbf89de67
3 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# Change the value of "user" to your linux user name
|
# 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
|
# Change the value of "script_path" to your path of seafile installation
|
||||||
seafile_dir=SEAFILE_DIR
|
seafile_dir=SEAFILE_DIR
|
||||||
|
|
|
@ -117,6 +117,7 @@ ynh_replace_string WEBDAV_PORT $webdav_port $final_path/conf/seafdav.conf
|
||||||
cp ../conf/seafile-server /etc/init.d
|
cp ../conf/seafile-server /etc/init.d
|
||||||
ynh_replace_string SEAHUB_PORT $seahub_port /etc/init.d/seafile-server
|
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_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
|
chmod +x /etc/init.d/seafile-server
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
update-rc.d seafile-server defaults
|
update-rc.d seafile-server defaults
|
||||||
|
|
|
@ -134,6 +134,7 @@ config_nginx
|
||||||
cp ../conf/seafile-server /etc/init.d
|
cp ../conf/seafile-server /etc/init.d
|
||||||
ynh_replace_string SEAHUB_PORT $seahub_port /etc/init.d/seafile-server
|
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_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
|
chmod +x /etc/init.d/seafile-server
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue