Skip to content

Commit

Permalink
fixed copy clobbering original
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Mar 30, 2022
1 parent a6684ff commit bc688c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ CONFS="arm.yaml apprise.yaml .abcde.conf"
for conf in $CONFS; do
thisConf="/etc/arm/config/${conf}"
if [[ ! -f "${thisConf}" ]] ; then
echo "creating config file ${thisConf}"
cp "/opt/arm/setup/${conf}" "${thisConf}"
# Don't overwrite with defaults during reinstall
cp --no-clobber "/opt/arm/setup/${conf}" "${thisConf}"
fi
done
chown -R "${USER}:${USER}" /etc/arm/config/
chown -R "${USER}:${USER}" /etc/arm/

[[ -h /dev/cdrom ]] || ln -sv /dev/sr0 /dev/cdrom

Expand Down

0 comments on commit bc688c7

Please sign in to comment.