Skip to content

Commit

Permalink
Create setup_linux.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
24rr authored Dec 15, 2022
1 parent 3a6d173 commit 644be65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/auto-setup/setup_linux.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 644be65

Please sign in to comment.