mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
parent
25bb354d14
commit
7fe7284187
2 changed files with 6 additions and 4 deletions
|
@ -130,7 +130,9 @@ sudo su - www-data -c "/var/www/seafile/seafile-server-4.0.6/seafile.sh start"
|
|||
sudo su - www-data -c "$final_path/first_launch.exp $admin_email $admin_password"
|
||||
|
||||
# add sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent
|
||||
sudo python ../conf/add_sso_config.py
|
||||
sudo cp ../conf/add_sso_conf.py $final_path
|
||||
sudo cp ../conf/remove_sso_conf.py $final_path
|
||||
sudo python $final_path/add_sso_conf.py
|
||||
|
||||
# unprotect media
|
||||
sudo yunohost app setting seafile unprotected_uris -v "/media"
|
||||
|
|
|
@ -4,6 +4,9 @@ root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|||
|
||||
sudo service seafile-server stop
|
||||
|
||||
# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent
|
||||
sudo python /var/www/seafile/remove_sso_conf.py
|
||||
|
||||
sudo rm -rf /var/www/seafile
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/seafile.conf
|
||||
sudo rm -f /etc/init.d/seafile-server
|
||||
|
@ -20,9 +23,6 @@ sudo yunohost firewall disallow $seafile_port
|
|||
|
||||
sudo yunohost service remove seafile-server
|
||||
|
||||
# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent
|
||||
sudo python ../conf/remove_sso_config.py
|
||||
|
||||
# Restart services
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
Loading…
Reference in a new issue