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