File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ getent group tty >/dev/null && usermod -aG tty amp
4545
4646install -d -m 0755 /home/amp
4747touch /home/amp/.gitconfig
48- chown -R amp:amp /home/amp
48+ chown amp:amp /home/amp /home/amp/.gitconfig
4949
5050# Make AMP binary executable
5151AMP_BIN=" /AMP/AMP_Linux_${ARCH} "
@@ -71,20 +71,6 @@ if ((${#REQUIRED_DEPS[@]})); then
7171 )
7272fi
7373
74- # Set custom mountpoint permissions if needed (non-fatal)
75- if [[ -n " ${AMP_MOUNTPOINTS:- } " ]]; then
76- echo " [Info] Updating custom mountpoint permissions..."
77- IFS=' :' read -r -a dirs <<< " ${AMP_MOUNTPOINTS}"
78- for dir in " ${dirs[@]} " ; do
79- [[ -n " ${dir} " ]] || continue
80- if [[ -e " ${dir} " ]]; then
81- chown -R amp:amp " ${dir} " 2> /dev/null || echo " [Warn] chown failed for ${dir} ; continuing"
82- else
83- echo " [Warn] Mountpoint not found: ${dir} ; skipping"
84- fi
85- done
86- fi
87-
8874# Run custom start script if it exists (non-fatal)
8975if [[ -f " /AMP/customstart.sh" ]]; then
9076 echo " [Info] Running customstart.sh..."
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ getent group tty >/dev/null && usermod -aG tty amp
4545
4646install -d -m 0755 /home/amp
4747touch /home/amp/.gitconfig
48- chown -R amp:amp /home/amp
48+ chown amp:amp /home/amp /home/amp/.gitconfig
4949
5050# Make AMP binary executable
5151AMP_BIN=" /AMP/AMP_Linux_${ARCH} "
@@ -71,20 +71,6 @@ if ((${#REQUIRED_DEPS[@]})); then
7171 )
7272fi
7373
74- # Set custom mountpoint permissions if needed (non-fatal)
75- if [[ -n " ${AMP_MOUNTPOINTS:- } " ]]; then
76- echo " [Info] Updating custom mountpoint permissions..."
77- IFS=' :' read -r -a dirs <<< " ${AMP_MOUNTPOINTS}"
78- for dir in " ${dirs[@]} " ; do
79- [[ -n " ${dir} " ]] || continue
80- if [[ -e " ${dir} " ]]; then
81- chown -R amp:amp " ${dir} " 2> /dev/null || echo " [Warn] chown failed for ${dir} ; continuing"
82- else
83- echo " [Warn] Mountpoint not found: ${dir} ; skipping"
84- fi
85- done
86- fi
87-
8874# Run custom start script if it exists (non-fatal)
8975if [[ -f " /AMP/customstart.sh" ]]; then
9076 echo " [Info] Running customstart.sh..."
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ getent group tty >/dev/null && usermod -aG tty amp
4545
4646install -d -m 0755 /home/amp
4747touch /home/amp/.gitconfig
48- chown -R amp:amp /home/amp
48+ chown amp:amp /home/amp /home/amp/.gitconfig
4949
5050# Make AMP binary executable
5151AMP_BIN=" /AMP/AMP_Linux_${ARCH} "
@@ -71,20 +71,6 @@ if ((${#REQUIRED_DEPS[@]})); then
7171 )
7272fi
7373
74- # Set custom mountpoint permissions if needed (non-fatal)
75- if [[ -n " ${AMP_MOUNTPOINTS:- } " ]]; then
76- echo " [Info] Updating custom mountpoint permissions..."
77- IFS=' :' read -r -a dirs <<< " ${AMP_MOUNTPOINTS}"
78- for dir in " ${dirs[@]} " ; do
79- [[ -n " ${dir} " ]] || continue
80- if [[ -e " ${dir} " ]]; then
81- chown -R amp:amp " ${dir} " 2> /dev/null || echo " [Warn] chown failed for ${dir} ; continuing"
82- else
83- echo " [Warn] Mountpoint not found: ${dir} ; skipping"
84- fi
85- done
86- fi
87-
8874# Run custom start script if it exists (non-fatal)
8975if [[ -f " /AMP/customstart.sh" ]]; then
9076 echo " [Info] Running customstart.sh..."
You can’t perform that action at this time.
0 commit comments