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:
parent
8b7b517769
commit
1e7362b9fb
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue