forked from zpanel/zpanelx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.../config_packs/centos_6_5/zpanelx-install/sql/zpanelx-update/10-1-1/shell/zpanel_update.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |