Skip to content

Commit 20c2fdb

Browse files
committed
fix an issue with the google cloud image creation script
1 parent ffc5f8c commit 20c2fdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/packages/server/compute/cloud/install.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const NVM_VERSION = "0.40.2";
4646
export function installNode() {
4747
return `
4848
rm -rf /cocalc/nvm/
49-
mkdir /cocalc/nvm
49+
mkdir -p /cocalc/nvm
5050
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | NVM_DIR=/cocalc/nvm PROFILE=/dev/null bash
5151
set +v
5252
source /cocalc/nvm/nvm.sh
@@ -66,6 +66,7 @@ apt-get remove -y docker.io docker-doc docker-compose podman-docker containerd
6666
apt-get update
6767
apt-get install -y ca-certificates curl gnupg
6868
install -m 0755 -d /etc/apt/keyrings
69+
rm -f /etc/apt/keyrings/docker.gpg
6970
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
7071
chmod a+r /etc/apt/keyrings/docker.gpg
7172

0 commit comments

Comments
 (0)