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:
parent
2e91721226
commit
4e69057e1c
2 changed files with 12 additions and 1 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue