mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Merge pull request #1333 from pneb/master
enhancement: Added 2 new files (auto-setup)
This commit is contained in:
commit
0404748e6e
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
|
16
deploy/auto-setup/setup_win.bat
Normal file
16
deploy/auto-setup/setup_win.bat
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
rem Create a new group for PowerDNS-Admin
|
||||||
|
net localgroup powerdnsadmin /add
|
||||||
|
|
||||||
|
rem Create a user for PowerDNS-Admin
|
||||||
|
net user powerdnsadmin /add /passwordchg:no /homedir:nul /active:yes /expires:never /passwordreq:no /s
|
||||||
|
|
||||||
|
rem Make the new user and group the owners of the PowerDNS-Admin files
|
||||||
|
icacls "C:\path\to\powerdns-admin" /setowner "powerdnsadmin"
|
||||||
|
|
||||||
|
rem Start the PowerDNS-Admin service
|
||||||
|
net start powerdns-admin
|
||||||
|
|
||||||
|
rem Enable the PowerDNS-Admin service to start automatically at boot
|
||||||
|
sc config powerdns-admin start= auto
|
Loading…
Reference in New Issue
Block a user