Moar small changes to test multi instance installs and public install

This commit is contained in:
Alexandre Aubin 2019-08-23 18:20:41 +02:00
parent 683830ce52
commit a694881d1a
3 changed files with 8 additions and 2 deletions

View file

@ -13,7 +13,7 @@
"requirements": {
"yunohost": ">> 2.5.0"
},
"multi_instance": false,
"multi_instance": true,
"arguments": {
"install" : [
{

View file

@ -15,7 +15,7 @@ sudo sed -i "s@FOLDER@$app/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
# Make directory for app web data
sudo mkdir -p /var/www/$app
sudo mkdir /var/www/$app
sudo cp ../conf/index.html /var/www/$app
sudo yunohost app checkport 12345
@ -33,6 +33,9 @@ sudo yunohost app setting $app mysqlpwd -v $db_pwd
# Other custom stuff
sudo cp ../sources/importantfile /etc/
# Set the app as public
sudo yunohost app setting $app unprotected_uris -v "/"
# Reload Nginx and regenerate SSOwat conf
sudo service nginx reload
#sudo yunohost app ssowatconf

View file

@ -33,6 +33,9 @@ sudo su -c "mysql -u $db_user -p$db_pwd $app < ${restore_dir}/db.sql"
# even if restore_dir is in read-only as long as there's no set -eu activated...
sudo rm ${restore_dir}/db.sql
# Set the app as public
sudo yunohost app setting $app unprotected_uris -v "/"
# Reload/reconfigure services
sudo service nginx reload
sudo yunohost app ssowatconf