mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 15:19:13 +02:00
Backup config if exists when installing (#536)
When installing, checks if `${DESTDIR}/etc/ly/config.ini` exists and
if it does, copies it to `${DESTDIR}/etc/ly/config.ini.old`
This commit is contained in:
parent
2ca870cfc5
commit
4ee2b3ecc7
1 changed files with 2 additions and 0 deletions
2
makefile
2
makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue