diff --git a/scripts/_common.sh b/scripts/_common.sh index 199ab3f..5f5307a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,8 +8,6 @@ RUBY_VERSION="2.7.1" MEMORY_NEEDED="2560" -source ynh_ruby - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/backup b/scripts/backup index 7a474c5..22f3a4c 100644 --- a/scripts/backup +++ b/scripts/backup @@ -6,6 +6,7 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh +source ../settings/scripts/ynh_ruby source ../settings/scripts/ynh_add_swap source /usr/share/yunohost/helpers diff --git a/scripts/install b/scripts/install index 00bd016..22ab8e3 100644 --- a/scripts/install +++ b/scripts/install @@ -5,6 +5,7 @@ #================================================= source _common.sh +source ynh_ruby source ynh_add_swap source /usr/share/yunohost/helpers diff --git a/scripts/remove b/scripts/remove index e31f498..4094ddc 100644 --- a/scripts/remove +++ b/scripts/remove @@ -5,6 +5,7 @@ #================================================= source _common.sh +source ynh_ruby source ynh_add_swap source /usr/share/yunohost/helpers diff --git a/scripts/restore b/scripts/restore index 0aab10f..2711d38 100644 --- a/scripts/restore +++ b/scripts/restore @@ -6,6 +6,7 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh +source ../settings/scripts/ynh_ruby source ../settings/scripts/ynh_add_swap source /usr/share/yunohost/helpers diff --git a/scripts/upgrade b/scripts/upgrade index 4172c4a..2e70928 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -5,6 +5,9 @@ #================================================= source _common.sh +source ynh_ruby +source ynh_add_swap +source /usr/share/yunohost/helpers #================================================= # STOP SYSTEMD SERVICE