This commit is contained in:
Alexandre
2024-08-30 13:23:20 +02:00
committed by GitHub
parent ce58df5068
commit b42ad692ae
11 changed files with 23 additions and 23 deletions

View File

@@ -39,8 +39,8 @@ sed -i "s|/config|$LOCATION|g" /etc/cont-init.d/*
sed -i "s|/config|$LOCATION|g" /etc/services.d/*/run
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/HOME; fi
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME; fi
printf "%s" "HOME=\"$LOCATION\"" >> ~/.bashrc
printf "%s" "FM_HOME=\"$LOCATION\"" >> ~/.bashrc
printf "%s\n" "HOME=\"$LOCATION\"" >> ~/.bashrc
printf "%s\n" "FM_HOME=\"$LOCATION\"" >> ~/.bashrc
usermod --home "$LOCATION" abc