Skip to content

Commit

Permalink
Check if abcde.conf exists before linking
Browse files Browse the repository at this point in the history
  • Loading branch information
1337-server committed Jun 28, 2022
1 parent 60d7fdd commit c585465
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/docker/runit/arm_user_files_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ done
fi
done
chown -R arm:arm /etc/arm/

# abcde.conf is expected in /etc by the abcde installation
cp --no-clobber "/opt/arm/setup/.abcde.conf" "/etc/arm/config/abcde.conf"
ln -s /etc/arm/config/abcde.conf /etc/.abcde.conf
chown arm:arm "/etc/arm/config/abcde.conf"
if [[ ! -f "/etc/arm/config/abcde.conf" ]] ; then
# abcde.conf is expected in /etc by the abcde installation
cp --no-clobber "/opt/arm/setup/.abcde.conf" "/etc/arm/config/abcde.conf"
ln -s /etc/arm/config/abcde.conf /etc/.abcde.conf
chown arm:arm "/etc/arm/config/abcde.conf"
fi

0 comments on commit c585465

Please sign in to comment.