Files
MailBackup-sys/Resources/AddMailBox.sh
Bram Prieshof 5c67f6c539 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
2024-01-13 00:40:24 +01:00

7 lines
257 B
Bash

#!/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 python3 /usr/bin/offlineimap" >> /opt/mailsync.sh