From 57740d8b4c743a33826769a23fb009d844622382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 5 Feb 2024 19:12:10 +0100 Subject: [PATCH] Move all script in script folder --- scripts/install | 4 ++-- {conf => scripts}/login_source.sql | 0 scripts/upgrade | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename {conf => scripts}/login_source.sql (100%) diff --git a/scripts/install b/scripts/install index b5954c5..3bf2ce3 100644 --- a/scripts/install +++ b/scripts/install @@ -87,8 +87,8 @@ _set_permissions ynh_systemd_action --service_name="$app" --action=start --log_path="/var/log/$app/gitea.log" --line_match="$systemd_match_start_line" # Add ldap config -ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=../conf/login_source.sql -ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ../conf/login_source.sql +ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=./login_source.sql +ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ./login_source.sql # Stop the service to restart it just afterwards ynh_systemd_action --service_name="$app" --action='stop' --log_path="/var/log/$app/gitea.log" diff --git a/conf/login_source.sql b/scripts/login_source.sql similarity index 100% rename from conf/login_source.sql rename to scripts/login_source.sql diff --git a/scripts/upgrade b/scripts/upgrade index 6ec65c4..c0bc9e5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,8 +100,8 @@ ynh_add_config --template=app.ini --destination="$install_dir/custom/conf/app.in _set_permissions # Update ldap config -ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=../conf/login_source.sql -ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ../conf/login_source.sql +ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=./login_source.sql +ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ./login_source.sql #================================================= # REAPPLY SYSTEM CONFIGURATIONS