This commit is contained in:
Alexandre
2023-04-24 12:24:47 +02:00
parent 70f4d23a9c
commit 966167d780
4 changed files with 37 additions and 25 deletions

View File

@@ -49,8 +49,10 @@ if [ -d /var/run/s6/container_environment ]; then
printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME
fi
if [ -f ~/.bashrc ]; then
printf "%s" "HOME=\"$LOCATION\"" >> ~/.bashrc
printf "%s" "FM_HOME=\"$LOCATION\"" >> ~/.bashrc
{
printf "%s" "HOME=\"$LOCATION\""
printf "%s" "FM_HOME=\"$LOCATION\""
} >> ~/.bashrc
fi
usermod --home "$LOCATION" abc