Update pixelfed-install.sh
This commit is contained in:
parent
8ddfc057d1
commit
66a3e96273
@ -118,21 +118,6 @@ systemctl restart php8.3-fpm
|
||||
msg_ok "Pixelfed successfully set up"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/supervisor/conf.d/pixelfed-worker.conf
|
||||
[program:pixelfed-worker]
|
||||
command=/usr/bin/php /opt/pixelfed/artisan queue:work
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
numprocs=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/opt/pixelfed/storage/logs/worker.log
|
||||
EOL
|
||||
EOF
|
||||
supervisorctl reread
|
||||
supervisorctl update
|
||||
supervisorctl start pixelfed-worker
|
||||
|
||||
cat <<EOF >/etc/nginx/sites-available/pixelfed.conf
|
||||
server {
|
||||
listen 80;
|
||||
@ -179,7 +164,21 @@ Restart=always
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/pixelfed-scheduler.service
|
||||
[Unit]
|
||||
Description=Pixelfed Scheduler
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
ExecStart=/usr/bin/php /opt/pixelfed/artisan schedule:run
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
systemctl enable --now pixelfed-scheduler
|
||||
systemctl enable --now pixelfed-horizon
|
||||
msg_ok "Created Services"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user