1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Use = intead of space for helper args to avoid issue with parameter

This commit is contained in:
Josué Tille 2024-04-26 22:03:05 +02:00
parent fb20f2e9b6
commit 8f9aea80fb
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
5 changed files with 12 additions and 12 deletions

View file

@ -41,7 +41,7 @@ set_permission
ynh_script_progression --message="Starting a systemd service..." --weight=3
# Start a systemd service
ynh_systemd_action --service_name="$app.service" --action="restart" --line_match "Listening at: unix:/run/$app/app.socket" --log_path systemd
ynh_systemd_action --service_name="$app.service" --action="restart" --line_match="Listening at: unix:/run/$app/app.socket" --log_path=systemd
#=================================================
# END OF SCRIPT

View file

@ -13,9 +13,9 @@ source /usr/share/yunohost/helpers
#=================================================
# Postgresql superuser
#=================================================
ynh_script_progression --message="Configuring Postgresql superuser..." --weight 1
ynh_script_progression --message="Configuring Postgresql superuser..." --weight=1
ynh_psql_execute_as_root --sql "ALTER USER $db_user WITH SUPERUSER CREATEDB CREATEROLE REPLICATION"
ynh_psql_execute_as_root --sql="ALTER USER $db_user WITH SUPERUSER CREATEDB CREATEROLE REPLICATION"
ynh_script_progression --message='Creating base directory...'
@ -69,7 +69,7 @@ set_permission
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
ynh_systemd_action --service_name "$app.service" --action="restart" --line_match "Listening at: unix:/run/$app/app.socket" --log_path systemd
ynh_systemd_action --service_name="$app.service" --action="restart" --line_match="Listening at: unix:/run/$app/app.socket" --log_path=systemd
#=================================================
# END OF SCRIPT

View file

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Stop service
ynh_systemd_action --service_name "$app.service" --action stop
ynh_systemd_action --service_name="$app.service" --action=stop
ynh_remove_systemd_config --service=$app
yunohost service remove $app

View file

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Restoring the Postgresql superuser..." --weight=1
ynh_psql_execute_as_root --sql "ALTER USER $app WITH SUPERUSER CREATEDB CREATEROLE REPLICATION"
ynh_psql_execute_as_root --sql="ALTER USER $app WITH SUPERUSER CREATEDB CREATEROLE REPLICATION"
#=================================================
# RESTORE ALL CONFIG AND DATA
@ -50,7 +50,7 @@ set_permission
#=================================================
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name "$app.service" --action="restart" --line_match "Listening at: unix:/run/$app/app.socket" --log_path systemd
ynh_systemd_action --service_name="$app.service" --action="restart" --line_match="Listening at: unix:/run/$app/app.socket" --log_path=systemd
ynh_systemd_action --service_name=nginx --action=reload

View file

@ -18,14 +18,14 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Stopping a systemd service..." --weight=1
if [ -f "/etc/uwsgi/apps-available/$app.ini" ]; then
ynh_systemd_action --service_name "uwsgi-app@$app.service" --action stop
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action=stop
systemctl disable "uwsgi-app@$app.service" --quiet
yunohost service remove "uwsgi-app@$app" || true
ynh_secure_remove --file="/etc/uwsgi/apps-available/$app.ini"
ynh_secure_remove --file="/etc/systemd/system/uwsgi-app@$app.service.d"
else
ynh_systemd_action --service_name "$app.service" --action stop
ynh_systemd_action --service_name="$app.service" --action=stop
fi
#=================================================
@ -59,7 +59,7 @@ fi
ynh_script_progression --message="Configuring Postgresql superuser..." --weight=1
# Re-set the db_pwd just in case…
ynh_psql_execute_as_root --sql "ALTER USER $app WITH PASSWORD '$db_pwd' SUPERUSER CREATEDB CREATEROLE REPLICATION"
ynh_psql_execute_as_root --sql="ALTER USER $app WITH PASSWORD '$db_pwd' SUPERUSER CREATEDB CREATEROLE REPLICATION"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -90,7 +90,7 @@ ynh_add_systemd_config --service=$app --template=pgadmin.service
yunohost service add $app --log "/var/log/$app/$app.log" --description 'PgAdmin application'
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --logfile /var/log/$app --nonappend
ynh_use_logrotate --logfile=/var/log/$app --nonappend
set_permission
@ -99,7 +99,7 @@ set_permission
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=3
ynh_systemd_action --service_name "$app.service" --action="restart" --line_match "Listening at: unix:/run/$app/app.socket" --log_path systemd
ynh_systemd_action --service_name="$app.service" --action="restart" --line_match="Listening at: unix:/run/$app/app.socket" --log_path=systemd
#=================================================
# END OF SCRIPT