diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-09 21:23:28 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-09 21:23:28 -0500 |
commit | 3d7208853d0f7dfdee4c0aa26a65557414aea96f (patch) | |
tree | 607e68f9a5bc77599d0ad15eab678f1b6673244b /hooks/pre-up | |
parent | 8747402d7647d02d85f513cdd9d32410a6e17db6 (diff) | |
download | rcm-3d7208853d0f7dfdee4c0aa26a65557414aea96f.tar.gz rcm-3d7208853d0f7dfdee4c0aa26a65557414aea96f.tar.bz2 rcm-3d7208853d0f7dfdee4c0aa26a65557414aea96f.zip |
Shell update
Diffstat (limited to '')
-rwxr-xr-x | hooks/pre-up/1-oksh | 6 | ||||
-rwxr-xr-x | hooks/pre-up/2-nix | 8 | ||||
-rwxr-xr-x | hooks/pre-up/3-void (renamed from hooks/pre-up/void) | 4 | ||||
-rwxr-xr-x | hooks/pre-up/4-mbsync (renamed from hooks/pre-up/mbsync) | 0 | ||||
-rwxr-xr-x | hooks/pre-up/nix | 6 |
5 files changed, 16 insertions, 8 deletions
diff --git a/hooks/pre-up/1-oksh b/hooks/pre-up/1-oksh new file mode 100755 index 0000000..7cff998 --- /dev/null +++ b/hooks/pre-up/1-oksh @@ -0,0 +1,6 @@ +#!/bin/sh + +if ! [ -x "$(command -v mksh)" ]; then + sudo xbps-install -y mksh + chsh -s /bin/mksh +fi diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix new file mode 100755 index 0000000..cfba81f --- /dev/null +++ b/hooks/pre-up/2-nix @@ -0,0 +1,8 @@ +#!/bin/mksh + +if ! [ -x "$(command -v nix)" ]; then + echo "Installing Nix" + sudo install -d -m755 -o $(id -u) -g $(id -g) /nix + curl -L https://nixos.org/nix/install | sh +fi + diff --git a/hooks/pre-up/void b/hooks/pre-up/3-void index 01de807..e0824c2 100755 --- a/hooks/pre-up/void +++ b/hooks/pre-up/3-void @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # We'll use xpkg from xtools to find installable packages if ! [ -x "$(command -v xpkg)" ]; then @@ -12,4 +12,4 @@ fi if [ ! "$(cat ~/repository.list | grep 'void-repo-nonfree')" ]; then sudo xbps-install -Sy void-repo-nonfree -fi
\ No newline at end of file +fi diff --git a/hooks/pre-up/mbsync b/hooks/pre-up/4-mbsync index 6d58bb1..6d58bb1 100755 --- a/hooks/pre-up/mbsync +++ b/hooks/pre-up/4-mbsync diff --git a/hooks/pre-up/nix b/hooks/pre-up/nix deleted file mode 100755 index 84c077e..0000000 --- a/hooks/pre-up/nix +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -if ! [ -x "$(command -v nix)" ]; then - sh <(curl -L https://nixos.org/nix/install) --no-daemon -fi - |