diff --git a/conf/pict-rs.src b/conf/pict-rs.src index b7d8ce6..f927331 100644 --- a/conf/pict-rs.src +++ b/conf/pict-rs.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://git.asonix.dog/asonix/pict-rs/archive/v0.3.0-beta.19.tar.gz -SOURCE_SUM=0c53ba162c999375e9688024ffc77b783a0cc07c4928d44d753b052c09995bba +SOURCE_URL=https://git.asonix.dog/asonix/pict-rs/archive/v0.3.0-rc.2.tar.gz +SOURCE_SUM=b2dadfbb42c57d4abb6129aa07af8f208557cc948c0915aa8fcd3292cc8999b6 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/scripts/upgrade b/scripts/upgrade index f268612..ce9dbbd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"