Skip to content

Commit

Permalink
Create zpanel_update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
andykimpe committed Jun 26, 2014
1 parent efd8b0a commit 8afb2a3
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Security enhancement for MySQL.
sed -i "/symbolic-links=/a \secure-file-priv=/var/tmp" /etc/my.cnf

# Double check fixing permissions for CRON jobs.
chmod -R 644 /var/spool/cron/
chmod -R 644 /etc/cron.d/

# Removal of Password Directories module
rm -Rf /etc/zpanel/panel/modules/htpasswd

# Force removal of the 'getdownload.php' file for those that failed to delete it as per our security bulletin.
rm -f /etc/zpanel/panel/modules/backupmgr/code/getdownload.php

# Re-compile the latest version of zsudo
rm -f /etc/zpanel/panel/bin/zsudo
cc -o /etc/zpanel/panel/bin/zsudo /etc/zpanel/configs/bin/zsudo.c
sudo chown root /etc/zpanel/panel/bin/zsudo
chmod +s /etc/zpanel/panel/bin/zsudo

0 comments on commit 8afb2a3

Please sign in to comment.