Switched from Rainloop to SnappyMail since it seems to be abandoned
This commit is contained in:
@@ -65,7 +65,7 @@ if you are missing folders please check your client if it is subscibed to them
|
||||
<h3>Using inbuild webmail</h3>
|
||||
As username user the internalname and add @localhost <br>
|
||||
if you are missing folders click the cog icon in the botom right > click folders > click the eye icon on the foler(s) > back <br>
|
||||
<a href="/rainloop/">GotoLocalWebmail</a>
|
||||
<a href="/webmail/">GotoLocalWebmail</a>
|
||||
<p/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/ash
|
||||
##Script for updating OfflineIMAP3
|
||||
|
||||
NewOfflineIMAPVer=$(curl -s https://api.github.com/repos/OfflineIMAP/offlineimap3/tags | grep 'name.*' |head -n 1 | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " ")
|
||||
NewOfflineIMAPVer=$(curl -s https://api.github.com/repos/OfflineIMAP/offlineimap3/tags | grep 'name.*' |head -n 1 | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " | tr -d : )
|
||||
|
||||
printf "OfflineIMAP: checking for upgrades... "
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/ash
|
||||
##Script for updating RainLoop
|
||||
NewRainLoopVer=$(curl -s https://api.github.com/repos/RainLoop/rainloop-webmail/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " ")
|
||||
|
||||
printf "RainLoop: checking for upgrades... "
|
||||
|
||||
if [ "$NewRainLoopVer" != "$(cat /opt/rainloop-installed)" ];
|
||||
then
|
||||
echo "update found"
|
||||
#Backup Config
|
||||
mv /opt/rainloop/data/_data_ /tmp/_data_
|
||||
rm -rf /opt/rainloop
|
||||
curl http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip -o /tmp/rlcl.zip
|
||||
unzip -q /tmp/rlcl.zip -d /opt/rainloop
|
||||
chown -R nginx:nginx /opt/rainloop
|
||||
find /opt/rainloop/ -type d -exec chmod 755 {} \;
|
||||
find /opt/rainloop/ -type f -exec chmod 644 {} \;
|
||||
echo $NewRainLoopVer > /opt/rainloop-installed
|
||||
#Restore config
|
||||
mv /tmp/_data_ /opt/rainloop/data/_data_
|
||||
echo "upgrade complete"
|
||||
else
|
||||
echo "update not found"
|
||||
fi
|
||||
24
Resources/UpdateSnappyMail.sh
Normal file
24
Resources/UpdateSnappyMail.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/ash
|
||||
##Script for updating SnappyMailVer
|
||||
NewSnappyMailVer=$(curl -s https://api.github.com/repos/the-djmaze/snappymail/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " ")
|
||||
|
||||
printf "SnappyMail: checking for upgrades... "
|
||||
|
||||
if [ "$NewSnappyMailVer" != "$(cat /opt/SnappyMail-installed)" ];
|
||||
then
|
||||
echo "update found"
|
||||
#Backup Config
|
||||
mv /opt/webmail/data/_data_ /tmp/_data_
|
||||
rm -rf /opt/webmail
|
||||
curl -L https://github.com/the-djmaze/snappymail/releases/download/$NewSnappyMailVer/snappymail-${NewSnappyMailVer//v}.tar.gz -o /tmp/smc.tar.gz || exit 1
|
||||
tar -C /opt/webmail -xzf /tmp/smc.tar.gz
|
||||
chown -R nginx:nginx /opt/webmail
|
||||
find /opt/webmail/ -type d -exec chmod 755 {} \;
|
||||
find /opt/webmail/ -type f -exec chmod 644 {} \;
|
||||
echo $NewSnappyMailVer > /opt/webmail-installed
|
||||
#Restore config
|
||||
mv /tmp/_data_ /opt/webmail/data/_data_
|
||||
echo "upgrade complete"
|
||||
else
|
||||
echo "update not found"
|
||||
fi
|
||||
Reference in New Issue
Block a user