mirror of
https://github.com/YunoHost-Apps/nocodb_ynh.git
synced 2024-09-03 19:56:01 +02:00
fix config file .env was not modified not during upgrade neither during change url
This commit is contained in:
parent
f10c6906fe
commit
936326805d
2 changed files with 20 additions and 0 deletions
|
@ -25,6 +25,16 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
|
||||||
|
|
||||||
ynh_change_url_nginx_config
|
ynh_change_url_nginx_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MODIFY CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Modifying configuration file..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_config --template="env" --destination="$install_dir/.env"
|
||||||
|
|
||||||
|
chmod 400 "$install_dir/.env"
|
||||||
|
chown "$app:$app" "$install_dir/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -30,6 +30,16 @@ chmod -R o-rwx "$install_dir"
|
||||||
chown -R "$app:$app" "$install_dir"
|
chown -R "$app:$app" "$install_dir"
|
||||||
chmod +x "$install_dir/nocodb"
|
chmod +x "$install_dir/nocodb"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPGRADE CONFIGURATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrade configuration file..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_config --template="env" --destination="$install_dir/.env"
|
||||||
|
|
||||||
|
chmod 400 "$install_dir/.env"
|
||||||
|
chown "$app:$app" "$install_dir/.env"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REAPPLY SYSTEM CONFIGURATIONS
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue