mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
Monotone-Parent: b521f340498a0489a0b9c81b91374570890a80fa
Monotone-Revision: 21621ef29c0d61b24e6974e8c9df806df1274a38 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-03T16:17:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
e307ee23d2
commit
f499ab12d9
2 files changed
+86
No files matched your search
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
export PATH=/usr/local/sbin:$PATH
|
||||
|
||||
cd /root/SOGo
|
||||
# echo "Pulling monotone repository"
|
||||
|
||||
oldversion=$(mtn status)
|
||||
mtn pull >& /dev/null
|
||||
mtn update >& /dev/null
|
||||
newversion=$(mtn status)
|
||||
|
||||
if [ "$oldversion" == "$newversion" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "SOGo mainsite updated at $(date)..."
|
||||
|
||||
. /root/GNUstep/Library/Makefiles/GNUstep.sh >& /dev/null
|
||||
make distclean > /dev/null
|
||||
./configure --disable-strip --without-gnustep >& /dev/null
|
||||
make -s > /dev/null
|
||||
rm -rf /usr/local/lib/sogod-0.9
|
||||
make -s install > /dev/null
|
||||
# echo "Copying templates to /usr/local/share/sogo-0.9/templates"
|
||||
# rm -rf /usr/local/share/sogo-0.9/templates
|
||||
# cp -a UI/Templates /usr/local/share/sogo-0.9/templates
|
||||
# echo "Copying web resources to /usr/local/share/sogo-0.9/www"
|
||||
# cp -a UI/WebServerResources /usr/local/share/sogo-0.9/www
|
||||
# echo "Killing server"
|
||||
pkill sogod-0.9 >& /dev/null
|
||||
# echo "Starting sogod-0.9 (log in /var/log/sogod)"
|
||||
echo "Launching on $(date)" > /var/log/sogod
|
||||
sogod-0.9 >> /var/log/sogod 2>&1 &
|
||||
|
||||
Reference in new issue
Block a user