Only run postinst script once after installation
No need to re-run it every time the package upgrades
This commit is contained in:
parent
13bb66c8da
commit
ba241bec04
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
su "${SUDO_USER:?}" -c '/usr/bin/autobuild -s'
|
||||
|
||||
if [[ ! -f "/usr/share/autobuild/.postinst_config_has_been_run" ]]; then
|
||||
touch "/usr/share/autobuild/.postinst_config_has_been_run"
|
||||
su "${SUDO_USER:?}" -c '/usr/bin/autobuild -s'
|
||||
fi
|
||||
#DEBHELPER#
|
||||
|
|
Loading…
Reference in New Issue