fix(debian): move fullupdater-update to /opt, symlink in postinst
Some checks failed
Build and Release .deb / build-deb (push) Failing after 22s
Some checks failed
Build and Release .deb / build-deb (push) Failing after 22s
- Install both scripts in /opt/full-updater/scripts/ - Create symlinks in /usr/local/bin via postinst - Fixes dh_usrlocal error
This commit is contained in:
parent
9b449b39ce
commit
fce1146ed8
2 changed files with 2 additions and 2 deletions
1
debian/postinst
vendored
1
debian/postinst
vendored
|
|
@ -13,6 +13,7 @@ fi
|
|||
|
||||
# Ensure symlinks
|
||||
ln -sf "$OPT_DIR/scripts/fullupdater" /usr/local/bin/fullupdater
|
||||
ln -sf "$OPT_DIR/scripts/fullupdater-update" /usr/local/bin/fullupdater-update
|
||||
|
||||
# Ensure cache dir exists
|
||||
mkdir -p /tmp/full-updater-cache
|
||||
|
|
|
|||
3
debian/rules
vendored
3
debian/rules
vendored
|
|
@ -8,9 +8,8 @@ export DH_VERBOSE = 1
|
|||
override_dh_auto_install:
|
||||
install -d -m 755 $(CURDIR)/debian/full-updater/opt/full-updater
|
||||
install -d -m 755 $(CURDIR)/debian/full-updater/opt/full-updater/scripts
|
||||
install -d -m 755 $(CURDIR)/debian/full-updater/usr/local/bin
|
||||
install -D -m 755 scripts/fullupdater $(CURDIR)/debian/full-updater/opt/full-updater/scripts/fullupdater
|
||||
install -D -m 755 scripts/fullupdater-update $(CURDIR)/debian/full-updater/usr/local/bin/fullupdater-update
|
||||
install -D -m 755 scripts/fullupdater-update $(CURDIR)/debian/full-updater/opt/full-updater/scripts/fullupdater-update
|
||||
install -D -m 644 requirements.txt $(CURDIR)/debian/full-updater/opt/full-updater/requirements.txt
|
||||
cp -r full_updater $(CURDIR)/debian/full-updater/opt/full-updater/
|
||||
find $(CURDIR)/debian/full-updater/opt/full-updater -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue