mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
delete eval from roundcube configs
This commit is contained in:
parent
4e81382cd8
commit
19400663ec
1 changed files with 19 additions and 0 deletions
19
upd/fix_roundcube.sh
Executable file
19
upd/fix_roundcube.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Locate roundcube directory
|
||||||
|
if [ -d '/etc/roundcube' ]; then
|
||||||
|
rc_dir='/etc/roundcube'
|
||||||
|
fi
|
||||||
|
if [ -d '/etc/roundcubemail' ]; then
|
||||||
|
rc_dir='/etc/roundcubemail'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$rc_dir" ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check for eval
|
||||||
|
cd $rc_dir
|
||||||
|
for config in $(grep eval *.php |cut -f1 -d:); do
|
||||||
|
sed -i '/eval/d' $config
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue