Updates composer when updating

This commit is contained in:
2022-03-07 11:46:52 -05:00
parent 7d76f99ff9
commit d5e167d48e

View File

@@ -394,6 +394,7 @@ Deny from all""")
os.system(f"git --work-tree={location[:-6]} --git-dir={location[:-5]}.git reset --hard")
os.system(f"git --work-tree={location[:-6]} --git-dir={location[:-5]}.git pull > {location}updateInfo.log")
os.system(f"{location[:-5]}python/update.sh")
os.system(f"composer --working-dir={location} update")
os.system(f"chown www-data:www-data {location}updateInfo.log")
writeLog("Server updated successfully.", 19)
if os.path.isfile(location + "restore.json"): # Used to restore a previous version of the database