X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai-redep;h=6a47fafc7cd1d83044d9ac3e85fe8da8eeee2048;hb=d3d495af167adba91b190e8dcb95649c34fa04c7;hp=4ca3ea52b628df6fed6b6f86ae3151bc1fbd4995;hpb=4261ad7e021ec77e7198cf42c3576dad07f12a64;p=automated-distro-installer diff --git a/fai-redep b/fai-redep index 4ca3ea5..6a47faf 100755 --- a/fai-redep +++ b/fai-redep @@ -20,10 +20,10 @@ scp -r fai/config root@faiserver:/srv/fai # On arch, best seems to be copy your shadow file to a temp location, # then passwd, get out the new pass, then copy the shadow file back. -if [[ -e /q/root/shadow/standard ]]; then - # note, it would be best to have some kind of security on this file +f=/q/root/shadow/standard +if s test -e $f; then ssh root@faiserver tee -a /srv/fai/config/class/DEFAULT.var <