Move all script in script folder

This commit is contained in:
Josué Tille 2024-02-05 19:12:10 +01:00
parent 82853f2061
commit 57740d8b4c
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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