Rebuild for alpine
This commit is contained in:
6
Resources/AddMailBox.sh
Normal file
6
Resources/AddMailBox.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/ash
|
||||
##Script for adding user/sync job
|
||||
read -p "Enter name for the new sync job: " username
|
||||
adduser $username
|
||||
sed -i -e 's/UserName/'$username'/' /home/$username/.offlineimaprc
|
||||
echo "sudo -u $username offlineimap" >> /opt/mailsync.sh
|
||||
71
Resources/Custom-index.html
Normal file
71
Resources/Custom-index.html
Normal file
@@ -0,0 +1,71 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to BackupMail!</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Tahoma, Verdana, Arial, sans-serif;
|
||||
}
|
||||
th {
|
||||
text-align: left;
|
||||
}
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to BackupMail!</h1>
|
||||
<h2>Getting to older revision</h2>
|
||||
|
||||
<p>(PLACEHOLDERDATA) <br> The system syncs each wensday at 1:00am with the online mail server<br>
|
||||
The revisions are managed by the EXTERNAL version managment</p>
|
||||
|
||||
<h2>Demos's mail</h2>
|
||||
<table>
|
||||
<tr><td>Password:</td><td>Bemyguest123</td></tr>
|
||||
<tr><td> </td><tr/>
|
||||
<tr><th>Original address</th><th>Internalname</th></tr>
|
||||
<tr><td>demouser@outlook.com</td><td>demooutlook</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2>Accessing this backup<h2>
|
||||
<h3>Using mail client</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td>SSL/TLS:</td>
|
||||
<td>no</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Protocol:</td>
|
||||
<td>imap only</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Port:</td>
|
||||
<td>143</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Authentication:</td>
|
||||
<td>plain password</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hostname:</td>
|
||||
<td>192.168.2.185</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Username:</td>
|
||||
<td>listed above as internal name, do not add a @domain to the name </td>
|
||||
</tr>
|
||||
</table><br>
|
||||
if you are missing folders please check your client if it is subscibed to them
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<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>
|
||||
<p/>
|
||||
</body>
|
||||
</html>
|
||||
21
Resources/UpdateOfflineImap3.sh
Normal file
21
Resources/UpdateOfflineImap3.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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 " ")
|
||||
|
||||
printf "OfflineIMAP: checking for upgrades... "
|
||||
|
||||
if [ "$NewOfflineIMAPVer" != "$(cat /opt/OfflineIMAP3-installed)" ];
|
||||
then
|
||||
echo "update found"
|
||||
curl https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/$OfflineIMAPVer.tar.gz -o /tmp/olim3.zip
|
||||
unzip -q /tmp/olim3.zip -d /opt/OfflineIMAP3
|
||||
sed -i -e '/kerberos/c\' -e '/cygwin/c\' /opt/OfflineIMAP3/requirements.txt
|
||||
pip3 install -r /opt/OfflineIMAP3/requirements.txt
|
||||
echo $NewOfflineIMAPVer > /opt/OfflineIMAP3-installed
|
||||
echo " upgrade complete"
|
||||
else
|
||||
echo "update not found"
|
||||
fi
|
||||
|
||||
24
Resources/UpdateRainLoop.sh
Normal file
24
Resources/UpdateRainLoop.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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 /var/www/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
|
||||
Reference in New Issue
Block a user