File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ var_ram="${var_ram:-4192}"
1212var_disk=" ${var_disk:- 30} "
1313var_os=" ${var_os:- debian} "
1414var_version=" ${var_version:- 12} "
15- var_unprivileged=" ${var_unprivileged:- 1 } "
15+ var_unprivileged=" ${var_unprivileged:- 0 } "
1616var_fuse=" ${var_fuse:- yes} "
1717var_tun=" ${var_tun:- yes} "
1818
Original file line number Diff line number Diff line change @@ -16,18 +16,17 @@ update_os
1616msg_info " Installing Kasm Workspaces"
1717KASM_VERSION=$( curl -fsSL ' https://www.kasmweb.com/downloads' | grep -o ' https://kasm-static-content.s3.amazonaws.com/kasm_release_[^"]*\.tar\.gz' | head -n 1 | sed -E ' s/.*release_(.*)\.tar\.gz/\1/' )
1818curl -fsSL -o " /opt/kasm_release_${KASM_VERSION} .tar.gz" " https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION} .tar.gz"
19- cd /opt
20- tar -xf " kasm_release_${KASM_VERSION} .tar.gz"
21- chmod +x /opt/kasm_release/install.sh
22- printf ' y\ny\ny\n4\n' | bash /opt/kasm_release/install.sh | tee ~ /kasm-install.output
19+ tar -xf " /opt/kasm_release_${KASM_VERSION} .tar.gz" -C /opt
20+ printf ' y\ny\ny\n4\n' | bash /opt/kasm_release/install.sh
21+ touch ~ /kasm-install.output
2322sed -n ' /Kasm UI Login Credentials/,$p' ~ /kasm-install.output > ~/kasm.creds
2423msg_ok " Installed Kasm Workspaces"
2524
2625motd_ssh
2726customize
2827
2928msg_info " Cleaning up"
30- $STD rm -f /opt/kasm_release_${KASM_VERSION} .tar.gz
29+ $STD rm -f " /opt/kasm_release_${KASM_VERSION} .tar.gz"
3130$STD apt-get -y autoremove
3231$STD apt-get -y autoclean
3332msg_ok " Cleaned"
You can’t perform that action at this time.
0 commit comments