Updaded dependencies

*Added php ctype extention

*Switched OfflineImap from PIP package to the apk one from the "Alpine Community Edge" repo due to PEP 68 braking the install
This commit is contained in:
2024-01-13 00:40:24 +01:00
parent 1700628f9a
commit 5c67f6c539
3 changed files with 6 additions and 35 deletions

View File

@@ -3,4 +3,4 @@
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 python3 /opt/OfflineIMAP3/offlineimap.py" >> /opt/mailsync.sh
echo "sudo -u $username python3 /usr/bin/offlineimap" >> /opt/mailsync.sh

View File

@@ -1,22 +0,0 @@
#!/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 " " | tr -d : )
printf "OfflineIMAP: checking for upgrades... "
if [ "$NewOfflineIMAPVer" != "$(cat /opt/OfflineIMAP3-installed)" ];
then
echo "update found"
curl -L https://github.com/OfflineIMAP/offlineimap3/archive/refs/tags/$NewOfflineIMAPVer.tar.gz -o /tmp/olim3.tar.gz
mkdir /opt/OfflineIMAP3
tar -C /opt/OfflineIMAP3 -xzf /tmp/olim3.tar.gz --strip 1
sed -i '/kerberos/c\' /opt/OfflineIMAP3/requirements.txt
sed -i '/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