|
|
@@ -10,7 +10,7 @@ source minipai2.conf
|
10
|
10
|
oldversion=$version
|
11
|
11
|
|
12
|
12
|
# Fix Bug: http://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty/12371337#12371337
|
13
|
|
-find .git/objects/ -type f -empty | xargs rm
|
|
13
|
+find .git/objects/ -type f -empty | xargs rm &> /dev/null
|
14
|
14
|
git fetch -p
|
15
|
15
|
git fsck --full
|
16
|
16
|
|
|
|
@@ -26,6 +26,9 @@ if [ "$oldversion" != "$version" ] && [ "$deldb" = "true" ]; then
|
26
|
26
|
rm minipai2.db
|
27
|
27
|
fi
|
28
|
28
|
|
|
29
|
+# Remove *.pyc
|
|
30
|
+rm -rf ./utils/*.pyc
|
|
31
|
+
|
29
|
32
|
# Start Server
|
30
|
33
|
if [ -d "/ramfs/" ]; then
|
31
|
34
|
nohup python main.py --port=8002 &>/ramfs/minipai2.log &
|