mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Update install
This commit is contained in:
parent
871a0991d8
commit
6000fad7bc
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=__APP__ social network
|
Description=__APP__ social network
|
||||||
After=network.target postgresql.service nginx.service
|
After=network.target postgresql.service nginx.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -231,7 +231,7 @@ pushd $final_path/$app
|
||||||
|
|
||||||
#Generate key pair
|
#Generate key pair
|
||||||
#sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.exs"
|
#sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.exs"
|
||||||
su pleroma -s $SHELL -lc "PLEROMA_CONFIG_PATH=$config $final_path/$app/bin/pleroma_ctl gen keypair" >> "$config"
|
#su pleroma -s $SHELL -lc "PLEROMA_CONFIG_PATH=$config $final_path/$app/bin/pleroma_ctl gen keypair" >> "$config"
|
||||||
#ynh_replace_string --match_string="administrator@example.com" --replace_string="$admin_email" --target_file="$config"
|
#ynh_replace_string --match_string="administrator@example.com" --replace_string="$admin_email" --target_file="$config"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ yunohost service add $app --description "$app daemon for Pleroma" --log "/var/lo
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Starting a systemd service..."
|
ynh_print_info --message="Starting a systemd service..."
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd --line_match="Started pleroma social network"
|
ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd --line_match="Started pleroma"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Add table
Reference in a new issue