adding ubuntu support to fastmail.sh
This commit is contained in:
parent
4d04f44f76
commit
b3f4a7d70d
1 changed files with 3 additions and 2 deletions
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
echo "OS is linux"
|
echo "OS is linux"
|
||||||
DISTRO=$(. /etc/os-release; echo $NAME)
|
DISTRO=$(. /etc/os-release; echo $NAME)
|
||||||
if [[ "$DISTRO" == "Fedora" ]]; then
|
if [[ "$DISTRO" == "Fedora" ]]; then
|
||||||
echo "Distro is Fedora"
|
echo "Distro is Fedora"
|
||||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-bundle.crt -c $HOME/.offlineimaprc_fastmail
|
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-bundle.crt -c $HOME/.offlineimaprc_fastmail
|
||||||
|
elif [[ "$DISTRO" == "Ubuntu" ]]; then
|
||||||
|
echo "Distro is Ubuntu"
|
||||||
|
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
||||||
elif [[ "$DISTRO" == "Debian GNU/Linux" ]]; then
|
elif [[ "$DISTRO" == "Debian GNU/Linux" ]]; then
|
||||||
echo "Distro is Debian"
|
echo "Distro is Debian"
|
||||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
||||||
|
|
Loading…
Reference in a new issue