diff --git a/manifest.toml b/manifest.toml index 1643ab8..366e75f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -18,6 +18,7 @@ cpe = "cpe:2.3:a:owncloud:owncloud" [integration] yunohost = ">= 11.2" +helpers_version = "2.1" architectures = ["amd64", "arm64", "armhf", "i386"] multi_instance = false diff --git a/scripts/install b/scripts/install index b2e3053..4c95a0b 100755 --- a/scripts/install +++ b/scripts/install @@ -10,7 +10,6 @@ timezone=$(cat /etc/timezone) #================================================= ynh_script_progression "Setting up source files..." -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" @@ -22,10 +21,8 @@ chmod +x $install_dir/ocis #================================================= ynh_script_progression "Adding system configurations related to $app..." -# Create a dedicated NGINX config ynh_config_add_nginx -# Create a dedicated systemd config ynh_config_add_systemd yunohost service add $app --description="File sharing platform" --log="/var/log/$app/$app.log" diff --git a/scripts/remove b/scripts/remove index 098e9c9..ed34c62 100755 --- a/scripts/remove +++ b/scripts/remove @@ -7,21 +7,17 @@ source /usr/share/yunohost/helpers # REMOVE SYSTEM CONFIGURATIONS #================================================= # REMOVE SYSTEMD SERVICE - #================================================= ynh_script_progression "Removing system configurations related to $app..." -# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_hide_warnings yunohost service status $app >/dev/null then ynh_script_progression "Removing $app service integration..." yunohost service remove $app fi -# Remove the dedicated systemd config ynh_config_remove_systemd -# Remove the dedicated NGINX config ynh_config_remove_nginx #================================================= diff --git a/scripts/restore b/scripts/restore index f050ef9..db3de1f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -1,6 +1,5 @@ #!/bin/bash -# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/upgrade b/scripts/upgrade index 748ba05..4dd3f47 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,7 +26,6 @@ fi #================================================= ynh_script_progression "Upgrading source files..." -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --full_replace chmod -R o-rwx "$install_dir" @@ -38,10 +37,8 @@ chmod +x $install_dir/ocis #================================================= ynh_script_progression "Upgrading system configurations related to $app..." -# Create a dedicated NGINX config ynh_config_add_nginx -# Create a dedicated systemd config ynh_config_add_systemd yunohost service add $app --description="File sharing platform" --log="/var/log/$app/$app.log"