diff --git a/scripts/_common.sh b/scripts/_common.sh index 5b214a9..5008fb6 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,6 +6,9 @@ nodejs_version=16 +# Used in .env +timezone="$(cat /etc/timezone)" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 88e7af9..8453120 100755 --- a/scripts/install +++ b/scripts/install @@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers secretkey=$(ynh_string_random --length=12) ynh_app_setting_set --app=$app --key=secretkey --value="$secretkey" -timezone="$(cat /etc/timezone)" - #================================================= # INSTALL DEPENDENCIES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 46548b0..597450e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,12 +18,6 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1 ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$app/$app.log" -#================================================= -# INITIALIZE AND STORE SETTINGS -#================================================= - -timezone="$(cat /etc/timezone)" - #================================================= # UPGRADE DEPENDENCIES #=================================================