From e43729a345f845cb912ceb85a74de0fe1022f075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 30 Nov 2023 09:11:58 +0100 Subject: [PATCH] cleaning --- manifest.toml | 1 - scripts/install | 8 -------- scripts/upgrade | 9 +-------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1b58ab6..6b88d2d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -64,7 +64,6 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" - main.additional_urls = ["/adminstuds.php"] [resources.apt] packages = "mariadb-server, php8.0-mbstring, php8.0-intl, php8.0-xml, php8.0-cli" diff --git a/scripts/install b/scripts/install index eceb81c..74dc8ef 100644 --- a/scripts/install +++ b/scripts/install @@ -50,14 +50,6 @@ ynh_add_config --template="config.php" --destination="$install_dir/app/inc/confi chmod 400 "$install_dir/app/inc/config.php" chown $app:$app "$install_dir/app/inc/config.php" -#================================================= -# SETUP HOOKS FILE -#================================================= -ynh_script_progression --message="Setuping hooks file..." - -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../hooks/post_app_addaccess" -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../hooks/post_app_removeaccess" - #================================================= # REPLACE LOGO IMAGE (DEFAULT IS FRAMADATE) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 3f49373..051c77b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,7 +31,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=2 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" + ynh_setup_source --dest_dir="$install_dir" --keep="app/inc/config.php" fi chmod -R o-rwx "$install_dir" @@ -63,13 +63,6 @@ then chown $app:$app "$install_dir/app/inc/config.php" fi -#================================================= -# SETUP HOOKS FILE -#================================================= - -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../hooks/post_app_addaccess" -ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../hooks/post_app_removeaccess" - #================================================= # REPLACE LOGO IMAGE (DEFAULT IS FRAMADATE) #=================================================