www-apps/netbox: upgrade script fix

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2021-08-26 08:56:16 +02:00
parent 7f83214fd8
commit 4408c226ef
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
1 changed files with 1 additions and 1 deletions

View File

@ -139,5 +139,5 @@ pkg_postinst() {
if [ -d "${LAST_BASE_DIRECTORY}/netbox/reports" ]; then
${NBCP} -pr "${LAST_BASE_DIRECTORY}/netbox/reports" /opt/netbox/netbox/
fi
cd /opt/netbox && su -l "${PN}" -s /bin/sh -c ./upgrade.sh
cd /opt/netbox && su -p -s /bin/sh -c ./upgrade.sh "${PN}"
}