Skip to content

Commit 7acdcbe

Browse files
Set fuse user_allow_other regardless of cloud env (#302)
1 parent 12f8fd8 commit 7acdcbe

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

startupscript/gcp/resource-mount.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ else
4646
emit "gcsfuse already installed. Skipping installation."
4747
fi
4848

49-
# Uncomment user_allow_other in the fuse.conf to enable non-root user to mount files with -o allow-other option.
50-
sed -i '/user_allow_other/s/^#//g' /etc/fuse.conf
51-
5249
if [[ "${LOG_IN}" == "true" ]]; then
5350
${RUN_AS_LOGIN_USER} "'${WORKBENCH_INSTALL_PATH}' resource mount --allow-other || echo 'Resource mounting failed.'"
5451
fi

startupscript/post-startup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ fi
212212
#############################
213213
# Mount buckets
214214
#############################
215+
216+
# Uncomment user_allow_other in the fuse.conf to enable non-root user to mount files with -o allow-other option.
217+
sed -i '/user_allow_other/s/^#//g' /etc/fuse.conf
218+
215219
source "${CLOUD_SCRIPT_DIR}/resource-mount.sh"
216220

217221
###############################

0 commit comments

Comments
 (0)