1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Fix install and remove

This commit is contained in:
yalh76 2019-12-28 22:28:19 +01:00
parent 2e91721226
commit 4e69057e1c
2 changed files with 12 additions and 1 deletions

View file

@ -190,7 +190,11 @@ ynh_add_systemd_config
chown -R "$app":"$app" "$final_path"
pushd $final_path/$app
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl instance gen --force \
#Workaround for static-dir error
ynh_replace_string --match_string="_dir" --replace_string="" --target_file="/var/www/pleroma/pleroma/releases/1.1.7/releases.exs"
#Generate instance
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl instance gen --force \
--output $config \
--output-psql /tmp/setup_db.psql \
--domain $domain \

View file

@ -36,6 +36,13 @@ then
yunohost service remove $app
fi
#=================================================
# STOP ALL PLEROMA SERVICES
#=================================================
ynh_print_info --message="Stopping all pleroma services..."
pkill -u $app
#=================================================
# STOP AND REMOVE SERVICE
#=================================================