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

Update install

This commit is contained in:
oufmilo 2021-06-10 11:23:28 +02:00 committed by GitHub
parent 1fce45ed67
commit fa21bfcaf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,13 +179,13 @@ popd
cat "../conf/ldap.exs" >> "$config" cat "../conf/ldap.exs" >> "$config"
cat "../conf/mail.exs" >> "$config" cat "../conf/mail.exs" >> "$config"
ynh_replace_string --match_string="__DATADIR__" --replace_string="$datadir" --target_file="../conf/uploads.exs" ynh_add_config --match_string="__DATADIR__" --replace_string="$datadir" --target_file="../conf/uploads.exs"
cat "../conf/uploads.exs" >> "$config" cat "../conf/uploads.exs" >> "$config"
pushd $final_path/$app pushd $final_path/$app
chmod o-rwx $config chmod o-rwx $config
ynh_replace_string --match_string="__YNH_USER__" --replace_string="${app}_notifs" --target_file="$config" ynh_add_config --match_string="__YNH_USER__" --replace_string="${app}_notifs" --target_file="$config"
ynh_replace_string --match_string="__YNH_USER_PASSWORD__" --replace_string="${ynh_user_password}" --target_file="$config" ynh_add_config --match_string="__YNH_USER_PASSWORD__" --replace_string="${ynh_user_password}" --target_file="$config"
# Compile *again* because we added ldap conf in between... dunno if the first is relevant # Compile *again* because we added ldap conf in between... dunno if the first is relevant
sudo -u "$app" MIX_ENV=prod mix compile sudo -u "$app" MIX_ENV=prod mix compile
ynh_secure_remove --file="/tmp/setup_db.psql" ynh_secure_remove --file="/tmp/setup_db.psql"