Compare commits

...

3 Commits

Author SHA1 Message Date
Inex Code 1e86af00ab Try out pleroma fixes 2022-07-19 16:00:12 +03:00
Inex Code b4878acf1d Init server with the Selfprivacy channel 2022-07-19 12:38:54 +03:00
inexcode ac7b2ad12d rolling 2022-07-14 20:48:26 +03:00
1 changed files with 4 additions and 5 deletions

View File

@ -10,14 +10,14 @@ makeConf() {
if [[ $PASSWORD == null ]]; then
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
fi
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
# NB <<"EOF" quotes / $ ` in heredocs, <<EOF does not
mkdir -p /etc/nixos
git clone https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git /etc/nixos
git clone -b pleroma-fixes https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git /etc/nixos
# Prevent grep for sending error code 1 (and halting execution) when no lines are selected : https://www.unix.com/man-page/posix/1P/grep
local IFS=$'\n'
@ -304,9 +304,8 @@ infect() {
# shellcheck disable=SC1090
source ~/.nix-profile/etc/profile.d/nix.sh
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-21.05"
nix-channel --remove nixpkgs
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
nix-channel --add "https://channel.selfprivacy.org/nixos-selfpricacy" nixos
nix-channel --update
export NIXOS_CONFIG=/etc/nixos/configuration.nix
@ -354,4 +353,4 @@ removeSwap
if [[ -z "$NO_REBOOT" ]]; then
reboot
fi
fi