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

Create pgcrypto extension if needed.

This commit is contained in:
J. C. Hammons 2022-02-27 16:46:56 -05:00
parent 8b7b517769
commit 1e7362b9fb

View file

@ -208,6 +208,13 @@ ynh_add_config --template="../conf/lemmy.hjson" --destination="$final_path/confi
chmod 400 "$final_path/config/config.hjson"
chown $app:$app "$final_path/config/config.hjson"
#=================================================
# CREATE EXTENSION IF NOT EXISTS pgcrypto
#=================================================
ynh_script_progression --message="Creating pgcrypto extension if needed..."
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pgcrypto;" --database="$db_name"
#=================================================
# SETUP SYSTEMD
#=================================================
@ -223,6 +230,7 @@ ynh_add_systemd_config --service="$app-pict-rs" --template="pict-rs.service"
#=================================================
# SETUP LOGROTATE
#=================================================
ynh_script_progression --message="Upgrading logrotate configuration..."
mkdir -p "/var/log/$app"