mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
13 lines
No EOL
454 B
Bash
13 lines
No EOL
454 B
Bash
#!/bin/bash
|
|
|
|
# Stop nginx if it's running and remove the old config file if it exists
|
|
systemctl start nginx
|
|
|
|
# Give all the permissions to the nginx user
|
|
chown -R nginx:nginx /usr/share/bunkerweb /var/cache/bunkerweb /var/lib/bunkerweb /etc/bunkerweb /var/tmp/bunkerweb
|
|
|
|
# Start bunkerweb service as nginx user and enable it to start on boot
|
|
systemctl enable bunkerweb
|
|
systemctl start bunkerweb
|
|
systemctl enable bunkerweb-ui
|
|
systemctl start bunkerweb-ui |