mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
fix install script
This commit is contained in:
parent
78b6de2f4a
commit
d721f58ced
2 changed files with 5 additions and 4 deletions
|
@ -82,9 +82,10 @@ if [ "$path" = "" ]; then
|
|||
else
|
||||
sudo cp ../conf/nginx.conf $nginx_conf_path
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_EXAMPLE_PORT@$port@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_EXEMPLE_DOMAIN@$domain@g" $nginx_conf_path
|
||||
|
||||
sudo sed -i "s@YNH_PATH@$path@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_PORT@$port@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_DOMAIN@$domain@g" $nginx_conf_path
|
||||
fi
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service nginx reload
|
||||
|
|
|
@ -11,6 +11,7 @@ path=$(ynh_app_setting_get "$app" path)
|
|||
dbuser=$(ynh_app_setting_get "$app" dbuser)
|
||||
dbname=$(ynh_app_setting_get "$app" dbname)
|
||||
is_public=$(ynh_app_setting_get "$app" is_public)
|
||||
port=9001
|
||||
|
||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
|
||||
|
@ -51,7 +52,6 @@ if [ "$path" = "" ]; then
|
|||
else
|
||||
sudo cp ../conf/nginx.conf $nginx_conf_path
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
port='9001'
|
||||
sudo sed -i "s@YNH_PATH@$path@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_PORT@$port@g" $nginx_conf_path
|
||||
sudo sed -i "s@YNH_DOMAIN@$domain@g" $nginx_conf_path
|
||||
|
|
Loading…
Add table
Reference in a new issue