mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-06 02:45:55 +01:00
Compare commits
2 Commits
os_selecti
...
fix/powerd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18801eb4ff | ||
|
|
87e14ba12f |
@@ -47,7 +47,10 @@ function update_script() {
|
|||||||
cp /opt/poweradmin_powerdns.db.bak /opt/poweradmin/powerdns.db
|
cp /opt/poweradmin_powerdns.db.bak /opt/poweradmin/powerdns.db
|
||||||
rm -rf /opt/poweradmin/install
|
rm -rf /opt/poweradmin/install
|
||||||
rm -f /opt/poweradmin_settings.php.bak /opt/poweradmin_powerdns.db.bak
|
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_ok "Updated Poweradmin"
|
||||||
|
|
||||||
msg_info "Restarting Services"
|
msg_info "Restarting Services"
|
||||||
|
|||||||
@@ -131,12 +131,13 @@ cat <<EOF >/etc/apache2/sites-enabled/poweradmin.conf
|
|||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOF
|
EOF
|
||||||
$STD a2enmod rewrite headers
|
$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
|
chown pdns:pdns /opt/poweradmin/powerdns.db
|
||||||
chmod 664 /opt/poweradmin/powerdns.db
|
chmod 664 /opt/poweradmin/powerdns.db
|
||||||
usermod -aG pdns www-data
|
usermod -aG pdns www-data
|
||||||
$STD systemctl restart pdns apache2
|
$STD systemctl restart pdns apache2
|
||||||
msg_info "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
@@ -3617,16 +3617,16 @@ build_container() {
|
|||||||
$PCT_OPTIONS_STRING"
|
$PCT_OPTIONS_STRING"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add storage if specified
|
# Add searchdomain if specified
|
||||||
if [ -n "$SD" ]; then
|
if [ -n "$SD" ]; then
|
||||||
PCT_OPTIONS_STRING="$PCT_OPTIONS_STRING
|
PCT_OPTIONS_STRING="$PCT_OPTIONS_STRING
|
||||||
-searchdomain $SD"
|
$SD"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add nameserver if specified
|
# Add nameserver if specified
|
||||||
if [ -n "$NS" ]; then
|
if [ -n "$NS" ]; then
|
||||||
PCT_OPTIONS_STRING="$PCT_OPTIONS_STRING
|
PCT_OPTIONS_STRING="$PCT_OPTIONS_STRING
|
||||||
-nameserver $NS"
|
$NS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Network configuration
|
# Network configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user