aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-24 10:55:32 -0300
committerEuAndreh <eu@euandre.org>2020-08-24 10:55:32 -0300
commitba88e0a131fe8c1148cee3136f2548ac269d0f3c (patch)
treeaa856fe8225017f42c88857b8568b8f43cbff641
parentDisable prosody (diff)
downloadserver-ba88e0a131fe8c1148cee3136f2548ac269d0f3c.tar.gz
server-ba88e0a131fe8c1148cee3136f2548ac269d0f3c.tar.xz
Add .bash_profile file and copy it with scp on deployment
-rw-r--r--bash-profile.sh1
-rwxr-xr-xnixos-switch.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/bash-profile.sh b/bash-profile.sh
new file mode 100644
index 0000000..a4dbf1d
--- /dev/null
+++ b/bash-profile.sh
@@ -0,0 +1 @@
+alias l='ls -lahp'
diff --git a/nixos-switch.sh b/nixos-switch.sh
index 01e8817..6567e4c 100755
--- a/nixos-switch.sh
+++ b/nixos-switch.sh
@@ -9,6 +9,8 @@ echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S nix-channel --add "https://nixos.or
echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade
rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/"
+scp bash-profile.sh "${TLD}:.bash_profile"
+
# shellcheck disable=2050
if [[ true = false ]]; then
echo Ugly hack to change TLS certificates permissions