forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·30 lines (26 loc) · 808 Bytes
/
setup.sh
File metadata and controls
executable file
·30 lines (26 loc) · 808 Bytes
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
28
29
30
#!/bin/sh
WRK_DIR=`pwd`
echo "remove obsolete files..."
rm -rf $WRK_DIR/.setttings
rm -rf $WRK_DIR/.buildpath
rm -rf $WRK_DIR/.project
rm -rf $WRK_DIR/test
rm -rf $WRK_DIR/templates
rm -rf $WRK_DIR/release.sh
rm -rf $WRK_DIR/html/test
find $WRK_DIR -name "dummy" -print0 | xargs -0 rm -rf
find $WRK_DIR -name ".svn" -type d -print0 | xargs -0 rm -rf
# find $WRK_DIR -iname "*.bak" -delete
echo "set permissions..."
chmod -R a+w $WRK_DIR/html/install/temp
chmod -R a+w $WRK_DIR/html/user_data
chmod -R a+w $WRK_DIR/html/upload
chmod -R a+w $WRK_DIR/data/cache
chmod -R a+w $WRK_DIR/data/downloads
chmod -R a+w $WRK_DIR/data/Smarty
chmod -R a+w $WRK_DIR/data/class
chmod -R a+w $WRK_DIR/data/logs
chmod -R a+w $WRK_DIR/data/upload
chmod -R a+w $WRK_DIR/data/config
chmod a+w $WRK_DIR/html
echo "finished."