Skip to content

Commit

Permalink
bug fix: upgrade issue
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 14, 2024
1 parent 5066805 commit 1cffd5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -3375,6 +3375,18 @@ def upgrade(branch):

Upgrade.fixSudoers()
# Upgrade.mountTemp()

### fix a temp issue causing upgrade problem

fstab = "/etc/fstab"

if open(fstab, 'r').read().find('/usr/.tempdisk')>-1:
command = 'umount -l /tmp'
Upgrade.executioner(command, 'tmp adjustment', 0)

command = 'mount -t tmpfs -o size=2G tmpfs /tmp'
Upgrade.executioner(command, 'tmp adjustment', 0)

Upgrade.dockerUsers()
Upgrade.setupComposer()

Expand Down

0 comments on commit 1cffd5d

Please sign in to comment.