mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-16 00:19:15 +01:00
Updated installer with fixes
This commit is contained in:
parent
be9add0954
commit
db8ee90d35
@ -60,11 +60,14 @@ git clone https://gitlab.com/zaney/zaneyos.git
|
|||||||
cd zaneyos || exit
|
cd zaneyos || exit
|
||||||
mkdir hosts/"$hostName"
|
mkdir hosts/"$hostName"
|
||||||
cp hosts/default/*.nix hosts/"$hostName"
|
cp hosts/default/*.nix hosts/"$hostName"
|
||||||
|
git config --global user.name "installer"
|
||||||
|
git config --global user.email "installer@gmail.com"
|
||||||
|
git add .
|
||||||
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
||||||
|
|
||||||
echo "-----"
|
echo "-----"
|
||||||
|
|
||||||
installusername=$("$USER")
|
installusername=$($USER)
|
||||||
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$installusername\"/" ./flake.nix
|
sed -i "/^\s*username[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$installusername\"/" ./flake.nix
|
||||||
|
|
||||||
echo "-----"
|
echo "-----"
|
||||||
|
Loading…
Reference in New Issue
Block a user