diff --git a/app/templates/.profile b/app/templates/.profile index 026d03c..16250f2 100644 --- a/app/templates/.profile +++ b/app/templates/.profile @@ -1,7 +1,6 @@ # ~/.bashrc clear -echo "Server {{HOSTNAME}}" - +echo "Server {{HOSTNAME}} IP: $(ip route get 1.1.1.1 | awk '{for(i=1;i<=NF;i++) if($i=="src") print $(i+1)}')" export PS1="\[\e[32m\]\h:\w\$\[\e[0m\] " df -h . diff --git a/app/update_sbin b/app/update_sbin index 26ffcd5..4ee9596 100755 --- a/app/update_sbin +++ b/app/update_sbin @@ -2,6 +2,7 @@ echo "Running prsync ./sbin" prsync -h "/app/host_vars/hosts" -avz ./sbin/ /4server/sbin/ +template templates/.profile /home/4server/.profile rex doas rc-service api restart diff --git a/app/vault/host_vars.img b/app/vault/host_vars.img index 8d3a08a..c0787b3 100644 Binary files a/app/vault/host_vars.img and b/app/vault/host_vars.img differ