From 05caffc44a4dedb6fd36fbd63e3f023811dcffd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 2 Sep 2024 08:56:05 +0200 Subject: [PATCH] cleaning --- scripts/backup | 10 ---------- scripts/install | 5 ----- scripts/restore | 5 ----- 3 files changed, 20 deletions(-) diff --git a/scripts/backup b/scripts/backup index 70166b4..bfb81f0 100755 --- a/scripts/backup +++ b/scripts/backup @@ -24,18 +24,8 @@ ynh_backup "$data_dir" ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP LOGROTATE -#================================================= - ynh_backup "/etc/logrotate.d/$app" -#================================================= -# BACKUP SYSTEMD -#================================================= - ynh_backup "/etc/systemd/system/$app.service" #================================================= diff --git a/scripts/install b/scripts/install index 5086d4d..7afe7e9 100755 --- a/scripts/install +++ b/scripts/install @@ -11,8 +11,6 @@ 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" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app: "$install_dir" #================================================= # NGINX CONFIGURATION #================================================= @@ -41,9 +39,6 @@ ynh_app_setting_set --key=api_key --value=$api_key ynh_config_add --template="config.xml" --destination="$data_dir/config.xml" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 "$data_dir/config.xml" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app:$app "$data_dir/config.xml" - #================================================= # YUNOHOST MULTIMEDIA INTEGRATION #================================================= diff --git a/scripts/restore b/scripts/restore index 725a98e..f54ff19 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,8 +20,6 @@ ynh_script_progression "Restoring the app main directory..." ynh_restore "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app: "$install_dir" #================================================= # RESTORE THE APP DATA DIR #================================================= @@ -31,9 +29,6 @@ ynh_restore "$data_dir" chown -R $app: "$data_dir" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 "$data_dir/config.xml" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app:$app "$data_dir/config.xml" - #================================================= # YUNOHOST MULTIMEDIA INTEGRATION #=================================================