Installation script enchansements
parent
08296a8f13
commit
f058216162
Binary file not shown.
|
@ -14,11 +14,13 @@ InstallDependencies()
|
|||
elif [ -x "$(command -v emerge)" ]; then sudo emerge --ask $packagesNeeded # Gentoo Linux
|
||||
elif [ -x "$(command -v nix-env)" ]; then nix-env -iA $packagesNeeded # NixOS
|
||||
else echo "FAILED TO INSTALL PACKAGE: Package manager not found. You must manually install: $packagesNeeded">&2; fi
|
||||
PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
||||
wget https://selfprivacy.org/configuration.nix
|
||||
wget https://selfprivacy.org/mailserver.nix
|
||||
wget https://selfprivacy.org/goss.nix
|
||||
wget https://selfprivacy.org/goss.yaml
|
||||
wget https://selfprivacy.org/restic.nix
|
||||
wget https://selfprivacy.org/mkpasswd
|
||||
wget https://selfprivacy.org/s3cli
|
||||
chmod +x s3cli
|
||||
}
|
||||
|
@ -30,7 +32,7 @@ CollectData()
|
|||
read -p "Please, paste your AWS Access Key ID: " AWS_TOKEN_ID
|
||||
read -p "Please, define your domain there: " DOMAIN
|
||||
read -p "Please, define your mail username: " USERNAME
|
||||
read -p "Please, define your password: " PASSWORD && PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
||||
read -p "Please, define your password: " PASSWORD && if [ -x "$(command -v mkpasswd)" ]; then PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" ) fi
|
||||
}
|
||||
|
||||
# Generate SSH key
|
||||
|
|
Loading…
Reference in New Issue