Commit ea80df91 authored by ale's avatar ale

Use rm -fr to remove temp and logs directories

parent 4d8610d3
Pipeline #1273 passed with stages
in 3 minutes and 26 seconds
......@@ -76,7 +76,7 @@ mkdir -p /etc/roundcube
ln -sf /etc/roundcube/ /var/www/webmail/config/
for plugin in $(cd /var/www/webmail/plugins && echo *); do
test -d /var/www/webmail/plugins/${plugin} || continue
rm -f /var/www/webmail/plugins/${plugin}/
rm -f /var/www/webmail/plugins/${plugin}/ || true
ln -sf /etc/roundcube/${plugin} \
......@@ -86,7 +86,7 @@ mkdir -p /data
# Fix runtime permissions for the Roundcube data directories.
for d in temp logs ; do
rm -f /var/www/webmail/$d
rm -fr /var/www/webmail/$d || true
ln -sf /data/$d /var/www/webmail/$d
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment