added cd for initial install folder
This commit is contained in:
parent
e0c105b806
commit
ec3672fb3b
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ if [[ "$_hostname" == "nixos" || "$_hostname" == "" ]]; then
|
||||||
echo 'Please set your hostname to somethin meaningful with `hostname $NAME`!'
|
echo 'Please set your hostname to somethin meaningful with `hostname $NAME`!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cd "/etc/nixos"
|
cd "/etc/nixos" || cd "/mnt/etc/nixos"
|
||||||
if [[ ! -d "systems/$_hostname" ]]; then
|
if [[ ! -d "systems/$_hostname" ]]; then
|
||||||
mkdir "systems/$_hostname"
|
mkdir "systems/$_hostname"
|
||||||
ln ./*.nix "systems/$_hostname"
|
ln ./*.nix "systems/$_hostname"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue