diff --git a/ct/powerdns.sh b/ct/powerdns.sh index f7e41bc42..9d1240516 100644 --- a/ct/powerdns.sh +++ b/ct/powerdns.sh @@ -47,7 +47,10 @@ function update_script() { cp /opt/poweradmin_powerdns.db.bak /opt/poweradmin/powerdns.db rm -rf /opt/poweradmin/install rm -f /opt/poweradmin_settings.php.bak /opt/poweradmin_powerdns.db.bak - chown -R www-data:www-data /opt/poweradmin + chown -R www-data:pdns /opt/poweradmin + chmod 775 /opt/poweradmin + chown pdns:pdns /opt/poweradmin/powerdns.db + chmod 664 /opt/poweradmin/powerdns.db msg_ok "Updated Poweradmin" msg_info "Restarting Services" diff --git a/install/powerdns-install.sh b/install/powerdns-install.sh index 6c388b7b0..4f5121f26 100644 --- a/install/powerdns-install.sh +++ b/install/powerdns-install.sh @@ -131,12 +131,13 @@ cat </etc/apache2/sites-enabled/poweradmin.conf EOF $STD a2enmod rewrite headers -chown -R www-data:www-data /opt/poweradmin +chown -R www-data:pdns /opt/poweradmin +chmod 775 /opt/poweradmin chown pdns:pdns /opt/poweradmin/powerdns.db chmod 664 /opt/poweradmin/powerdns.db usermod -aG pdns www-data $STD systemctl restart pdns apache2 -msg_info "Created Service" +msg_ok "Created Service" motd_ssh customize