mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-03 19:00:45 +01:00
bug fix: upgrade issue
This commit is contained in:
@@ -3375,6 +3375,18 @@ pm.max_spare_servers = 3
|
||||
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user