-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timezone Add runtime user Fix permissions Drop rclone mount support - Not supported in cloud and encourages unhealthy behaviour locally - Mount outside and bind Add additional archive tools Rationale: Prevent major base deviation between standard and X11 desktop variants
- Loading branch information
1 parent
60c8d9f
commit 9456fdc
Showing
9 changed files
with
150 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
build/COPY_ROOT/etc/supervisor/supervisord/conf.d/rclone_mount.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
function main() { | ||
while getopts o: flag; do | ||
case "${flag}" in | ||
o) only="${OPTARG}" | ||
esac | ||
done | ||
|
||
if [[ ${only,,} == "container" ]]; then | ||
fix_container | ||
elif [[ ${only,,} == "workspace" ]]; then | ||
fix_workspace | ||
else | ||
fix_container | ||
fix_workspace | ||
fi | ||
} | ||
|
||
function fix_container() { | ||
printf "Fixing container permissions...\n" | ||
items=micromamba:$OPT_SYNC | ||
IFS=: read -r -d '' -a path_array < <(printf '%s:\0' "$items") | ||
for item in "${path_array[@]}"; do | ||
if [[ -n $item ]]; then | ||
opt_dir="/opt/${item}" | ||
chown -R root.users "$opt_dir" | ||
chmod -R g+s "$opt_dir" | ||
chmod -R ug+rw "$opt_dir" | ||
setfacl -R -d -m g:users:rwx "$opt_dir" | ||
setfacl -R -d -m m:rwx "$opt_dir" | ||
fi | ||
done | ||
|
||
} | ||
|
||
function fix_workspace() { | ||
printf "Fixing workspace permissions...\n" | ||
chown -R ${WORKSPACE_UID}.${WORKSPACE_GID} "${WORKSPACE}" | ||
chmod -R g+s ${WORKSPACE} | ||
setfacl -R -d -m u:"${WORKSPACE_UID}":rwx "${WORKSPACE}" | ||
setfacl -R -d -m m:rwx "${WORKSPACE}" | ||
chmod o-rw ${WORKSPACE}/home/user | ||
if [[ -e ${WORKSPACE}/home/user/.ssh/authorized_keys ]]; then | ||
chmod 700 ${WORKSPACE}/home/user/.ssh | ||
chmod 600 ${WORKSPACE}/home/user/.ssh/authorized_keys | ||
fi | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.