Skip to content

Commit

Permalink
Merge branch 'master' into l10_crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat authored Dec 31, 2024
2 parents a8897ca + d7939ef commit a97a42f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/packager.io/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,15 @@ function stop_inventree() {
}

function update_or_install() {
set -e

# Set permissions so app user can write there
chown ${APP_USER}:${APP_GROUP} ${APP_HOME} -R

# Run update as app user
echo "# POI12| Updating InvenTree"
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && pip install uv wheel"
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && invoke update --uv | sed -e 's/^/# POI12| u | /;'"
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && pip install wheel"
sudo -u ${APP_USER} --preserve-env=$SETUP_ENVS bash -c "cd ${APP_HOME} && invoke update | sed -e 's/^/# POI12| u | /;'"

# Make sure permissions are correct again
echo "# POI12| Set permissions for data dir and media: ${DATA_DIR}"
Expand Down

0 comments on commit a97a42f

Please sign in to comment.