mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
Create setup_linux.sh
This commit is contained in:
parent
3a6d173d05
commit
644be65495
16
deploy/auto-setup/setup_linux.sh
Normal file
16
deploy/auto-setup/setup_linux.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create a new group for PowerDNS-Admin
|
||||
groupadd powerdnsadmin
|
||||
|
||||
# Create a user for PowerDNS-Admin
|
||||
useradd --system -g powerdnsadmin powerdnsadmin
|
||||
|
||||
# Make the new user and group the owners of the PowerDNS-Admin files
|
||||
chown -R powerdnsadmin:powerdnsadmin /opt/web/powerdns-admin
|
||||
|
||||
# Start the PowerDNS-Admin service
|
||||
systemctl start powerdns-admin
|
||||
|
||||
# Enable the PowerDNS-Admin service to start automatically at boot
|
||||
systemctl enable powerdns-admin
|
Loading…
Reference in New Issue
Block a user