Skip to content

Commit

Permalink
Backup config if exists when installing (#536)
Browse files Browse the repository at this point in the history
When installing, checks if `${DESTDIR}/etc/ly/config.ini` exists and
if it does, copies it to `${DESTDIR}/etc/ly/config.ini.old`
  • Loading branch information
brunorro authored Sep 10, 2023
1 parent 2ca870c commit 4ee2b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ install: $(BIND)/$(NAME)
@echo "installing ly"
@install -dZ ${DESTDIR}/etc/ly
@install -DZ $(BIND)/$(NAME) -t ${DESTDIR}/usr/bin
@if [ -e ${DESTDIR}/etc/ly/config.ini ]; then \
cp ${DESTDIR}/etc/ly/config.ini ${DESTDIR}/etc/ly/config.ini.old; fi
@install -DZ $(RESD)/config.ini -t ${DESTDIR}/etc/ly
@install -DZ $(RESD)/xsetup.sh -t $(DATADIR)
@install -DZ $(RESD)/wsetup.sh -t $(DATADIR)
Expand Down

0 comments on commit 4ee2b3e

Please sign in to comment.