mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
17 lines
458 B
Bash
17 lines
458 B
Bash
|
#!/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
|