File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,16 @@ if [ -z "$GZIP_LVL_CHECK" ]; then
114114 $BIN /v-change-sys-config-value " BACKUP_GZIP" ' 9'
115115fi
116116
117- # Randomize Rouncube des_key for better security
117+ # Randomize Roundcube des_key for better security
118118if [ -f " /etc/roundcube/config.inc.php" ]; then
119119 rcDesKey=" $( openssl rand -base64 30 | tr -d " /" | cut -c1-24) "
120120 sed -i " s/vtIOjLZo9kffJoqzpSbm5r1r/$rcDesKey /g" /etc/roundcube/config.inc.php
121121fi
122122
123123# Place robots.txt to prevent webmail crawling by search engine bots.
124- if [ ! -f " /var/lib/roundcube/robots.txt" ]; then
125- echo " User-agent: *" > /var/lib/roundcube/robots.txt
126- echo " Disallow: /" >> /var/lib/roundcube/robots.txt
127- fi
124+ if [ -e " /var/lib/roundcube/" ]; then
125+ if [ ! -f " /var/lib/roundcube/robots.txt" ]; then
126+ echo " User-agent: *" > /var/lib/roundcube/robots.txt
127+ echo " Disallow: /" >> /var/lib/roundcube/robots.txt
128+ fi
129+ fi
You can’t perform that action at this time.
0 commit comments