# change to folder which contains update.zip
# delete any previous update residuals
# extract updates.zip to "updated" folder and prepare
unzip update.zip -d updated
cat html/.env > updated/.env
# change back to original folder
# stop supervisor (if using background job queue)
sudo systemctl stop supervisor
# restore original "storage" folder and swap live code
mv html/storage updated/storage
# fix permissions on new files
chown -R www-data:www-data bootstrap/cache storage .env
chmod -R 755 bootstrap/cache storage
# start supervisor again (if using background job queue)
sudo systemctl start supervisor