Fix sso config

Former-commit-id: ace2d58712
This commit is contained in:
mbugeia 2015-03-18 18:07:50 +01:00
parent 25bb354d14
commit 7fe7284187
2 changed files with 6 additions and 4 deletions

View file

@ -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" 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 # 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 # unprotect media
sudo yunohost app setting seafile unprotected_uris -v "/media" sudo yunohost app setting seafile unprotected_uris -v "/media"

View file

@ -4,6 +4,9 @@ root_pwd=$(sudo cat /etc/yunohost/mysql)
sudo service seafile-server stop 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 -rf /var/www/seafile
sudo rm -f /etc/nginx/conf.d/$domain.d/seafile.conf sudo rm -f /etc/nginx/conf.d/$domain.d/seafile.conf
sudo rm -f /etc/init.d/seafile-server sudo rm -f /etc/init.d/seafile-server
@ -20,9 +23,6 @@ sudo yunohost firewall disallow $seafile_port
sudo yunohost service remove seafile-server 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 # Restart services
sudo service nginx reload sudo service nginx reload
sudo yunohost app ssowatconf sudo yunohost app ssowatconf