Skip to content

Commit

Permalink
Merge pull request #1125 from automatic-ripping-machine/shitwolfymake…
Browse files Browse the repository at this point in the history
…s-patch-1

Fix permissions issue caused by a8a8b8f
  • Loading branch information
microtechno9000 committed May 15, 2024
2 parents 1492a8f + d536055 commit 2059beb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.72
2.6.75
4 changes: 3 additions & 1 deletion arm_wiki/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To install default: `sudo ./docker-setup.sh`
To install from a different repo, tag: `sudo ./docker-setup.sh -f automaticrippingmachine -t dev_build`

The script will now:
1. Create an `arm` user and group if they don't exist
1. Create an `arm` user and group if they don't exist on the host
2. Install docker if it is not already found on the system
3. Pull the appropriate image from Dockerhub
4. Create host mountpoints for any DVD drives found on the system
Expand Down Expand Up @@ -100,6 +100,8 @@ The script will now:
sudo chown 1001:1001 -R /home/arm/config
```

Additionally, any folders the container creates during startup will be owned by the user specified in `start_arm_container.sh`. If the folder paths passed to the container are on a remote share (SMB, NFS, etc.) and do not already exist, this may result in the folders on the share not being owned by the same user.

5. **Start ARM**: Run the container with `sudo ./start_arm_container.sh`

You will then need to visit http://WEBSERVER_IP:PORT
Expand Down
4 changes: 3 additions & 1 deletion scripts/docker/runit/arm_user_files_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ for dir in $SUBDIRS ; do
if [[ ! -d "$thisDir" ]] ; then
echo "Creating dir: $thisDir"
mkdir -p "$thisDir"
# Set the default ownership to arm instead of root
chown -R arm:arm "$thisDir"
fi
done
echo "Removing any link between music and Music"

echo "Removing any link between music and Music"
if [ -h /home/arm/Music ]; then
echo "Music symbolic link found, removing link"
unlink /home/arm/Music
Expand Down

0 comments on commit 2059beb

Please sign in to comment.