-
Notifications
You must be signed in to change notification settings - Fork 3
/
chmod-oxid.sh
27 lines (27 loc) · 913 Bytes
/
chmod-oxid.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
if [ -f $1/config.inc.php ] && [ -f $1/bootstrap.php ]; then
echo "Leere Shop Cache..."
rm $1/tmp/* 2> /dev/null
rm $1/tmp/smarty/* 2> /dev/null
chmod 777 -R $1/out/pictures/
chmod 777 -R $1/out/media/
chmod 777 -R $1/log/
chmod 777 -R $1/tmp/
chmod 777 -R $1/export/
if [ -d $1/setup/ ]; then
chmod 777 $1/config.inc.php
chmod 777 $1/.htaccess
echo "Setze Berechtigungen für OXID installation."
else
chmod 444 $1/config.inc.php
chmod 444 $1/.htaccess
echo "Setze Berechtigungen für OXID live Betrieb."
fi
echo "Done."
else
echo "Warning:"
if [ "$1" != "" ]; then
echo "$1 is no OXID eShop Directory!"
fi
echo "Syntax: chmod-oxid [/path/to/oxid/shop]"
fi