mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
Moar small changes to test multi instance installs and public install
This commit is contained in:
parent
683830ce52
commit
a694881d1a
3 changed files with 8 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">> 2.5.0"
|
"yunohost": ">> 2.5.0"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": true,
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
# Make directory for app web data
|
# 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 cp ../conf/index.html /var/www/$app
|
||||||
|
|
||||||
sudo yunohost app checkport 12345
|
sudo yunohost app checkport 12345
|
||||||
|
@ -33,6 +33,9 @@ sudo yunohost app setting $app mysqlpwd -v $db_pwd
|
||||||
# Other custom stuff
|
# Other custom stuff
|
||||||
sudo cp ../sources/importantfile /etc/
|
sudo cp ../sources/importantfile /etc/
|
||||||
|
|
||||||
|
# Set the app as public
|
||||||
|
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||||
|
|
||||||
# Reload Nginx and regenerate SSOwat conf
|
# Reload Nginx and regenerate SSOwat conf
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
#sudo yunohost app ssowatconf
|
#sudo yunohost app ssowatconf
|
||||||
|
|
|
@ -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...
|
# even if restore_dir is in read-only as long as there's no set -eu activated...
|
||||||
sudo rm ${restore_dir}/db.sql
|
sudo rm ${restore_dir}/db.sql
|
||||||
|
|
||||||
|
# Set the app as public
|
||||||
|
sudo yunohost app setting $app unprotected_uris -v "/"
|
||||||
|
|
||||||
# Reload/reconfigure services
|
# Reload/reconfigure services
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue