forked from obel1x/fedora-OEMDRV
0020_nextcloud_mozilla_pre: auto-provision Thunderbird IMAP account at logon
Fetches user_full_name (givenname + sn) and user_email from FreeIPA via ipalib and writes them into the Thunderbird IMAP account prefs. Adds ipalib availability check to logon_script.sh. Drops TB_MAIL_FULLNAME config variable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,11 +18,18 @@ if [ "$EUID" -eq 0 ]; then
|
||||
fi
|
||||
|
||||
#Check for needed python-modules
|
||||
#For WEBDAV
|
||||
python -c "import webdav3">/dev/null 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Installing pip module webdav3"
|
||||
pip install webdavclient3>/dev/null
|
||||
fi
|
||||
#For IPA (system package python3-ipaclient, cannot be pip-installed)
|
||||
python -c "import ipalib">/dev/null 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Error: python3-ipaclient is not installed. Please install it via: sudo dnf install python3-ipaclient"
|
||||
fi
|
||||
|
||||
|
||||
#TODO C: Check if Desktop is KDE/Plasma and support other Displays
|
||||
# Make kdesu use sudo
|
||||
|
||||
Reference in New Issue
Block a user