summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhc <hc@email.ch>2024-12-28 14:21:12 +0800
committerhc <hc@email.ch>2024-12-28 14:21:12 +0800
commitc280db43a65e3ef46f4cc9febca0dc1e37efcbee (patch)
tree26c27010a48a2913f7e24b7c748f528da387b03f
parentbf1ebe9dd0506f837a2d61276e279e0e1e2cf660 (diff)
ud
-rwxr-xr-xcore/ssh.sh2
-rwxr-xr-xsetup.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/core/ssh.sh b/core/ssh.sh
index 3cf2583..3bcc3b8 100755
--- a/core/ssh.sh
+++ b/core/ssh.sh
@@ -5,4 +5,4 @@ echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
git clone https://git.0nom.ch/keys ~/keys
-~/keys/add-ssh-keys.sh
+sudo ~/keys/add-ssh-keys.sh
diff --git a/setup.sh b/setup.sh
index ccad66f..9344120 100755
--- a/setup.sh
+++ b/setup.sh
@@ -10,9 +10,9 @@ PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ '
EOF2
source /etc/bashrc
-bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
-bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
-bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
+sudo bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
+sudo bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
+sudo bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
sudo timedatectl set-timezone Asia/Singapore