From c280db43a65e3ef46f4cc9febca0dc1e37efcbee Mon Sep 17 00:00:00 2001 From: hc Date: Sat, 28 Dec 2024 14:21:12 +0800 Subject: ud --- core/ssh.sh | 2 +- setup.sh | 6 +++--- 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 -- cgit v1.2.3-70-g09d2