From 085427274b2fb8a362a6dbf807cbeba22f41ec23 Mon Sep 17 00:00:00 2001 From: Steven Seifried Date: Sun, 9 Oct 2022 20:12:58 +0200 Subject: [PATCH] Fixing snowflake (again) --- setup_files/snowflake-install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup_files/snowflake-install.sh b/setup_files/snowflake-install.sh index 78a1cce..8bcba12 100644 --- a/setup_files/snowflake-install.sh +++ b/setup_files/snowflake-install.sh @@ -75,10 +75,7 @@ msg_ok "Installed Dependencies" msg_info "Install Snowflake" useradd -rm snowflake -cd /home/snowflake -runuser --user snowflake --command 'git clone https://git.torproject.org/pluggable-transports/snowflake.git' -cd /home/snowflake/snowflake -runuser --user snowflake --command 'go build' +su snowflake -c "cd /home/snowflake && git clone https://git.torproject.org/pluggable-transports/snowflake.git && cd /home/snowflake/snowflake && go build" wget https://raw.githubusercontent.com/StevenSeifried/proxmox-scripts/main/systemd_files/snowflake.service -O /etc/systemd/system/snowflake.service chmod 644 /etc/systemd/system/snowflake.service systemctl daemon-reload