mirror of
https://github.com/YunoHost-Apps/wetty_ynh.git
synced 2024-09-03 18:16:29 +02:00
Several fixes
This commit is contained in:
parent
c26e58b02b
commit
0415ee9a86
5 changed files with 8 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
# dependencies used by the app
|
||||
# pkg_dependencies=""
|
||||
|
||||
YNH_NODEJS_VERSION=14
|
||||
NODEJS_VERSION=14
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -30,7 +30,6 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
|
|||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -115,6 +114,9 @@ path_url="$new_path"
|
|||
|
||||
ynh_add_config --template="config.json5" --destination="$final_path/config.json5"
|
||||
|
||||
chmod 400 "$final_path/config.json5"
|
||||
chown $app:$app "$final_path/config.json5"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
|
|
|
@ -66,7 +66,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
|||
ynh_script_progression --message="Installing dependencies..." --weight=6
|
||||
|
||||
# Install nodejs
|
||||
ynh_install_nodejs --nodejs_version="$YNH_NODEJS_VERSION"
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
|
||||
# Install Yarn
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
|
|
|
@ -77,7 +77,7 @@ chown -R $app:$app "$final_path"
|
|||
ynh_script_progression --message="Reinstalling dependencies..." --weight=3
|
||||
|
||||
# Install nodejs
|
||||
ynh_install_nodejs --nodejs_version="$YNH_NODEJS_VERSION"
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
|
||||
# Install Yarn
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
|
@ -124,4 +124,4 @@ ynh_systemd_action --service_name=nginx --action=reload
|
|||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Restoration completed for Wetty" --last
|
||||
ynh_script_progression --message="Restoration completed for $app" --last
|
||||
|
|
|
@ -107,7 +107,7 @@ ynh_add_nginx_config
|
|||
ynh_script_progression --message="Upgrading dependencies..." --weight=3
|
||||
|
||||
# Install nodejs
|
||||
ynh_install_nodejs --nodejs_version="$YNH_NODEJS_VERSION"
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
|
||||
# Install Yarn
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" \
|
||||
|
|
Loading…
Reference in a new issue