gate restore
This commit is contained in:
parent
2af7941343
commit
08fba7a730
1 changed files with 28 additions and 26 deletions
|
|
@ -122,6 +122,7 @@ install_lightning_pub() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$upgrade_status" -eq 100 ]; then
|
||||||
# Restore user data AFTER successful NPM install
|
# Restore user data AFTER successful NPM install
|
||||||
log "Restoring user data..."
|
log "Restoring user data..."
|
||||||
cp "$BACKUP_DIR"/*.sqlite "$INSTALL_DIR/" 2>/dev/null || true
|
cp "$BACKUP_DIR"/*.sqlite "$INSTALL_DIR/" 2>/dev/null || true
|
||||||
|
|
@ -149,6 +150,7 @@ install_lightning_pub() {
|
||||||
chmod 755 "$INSTALL_DIR/logs" 2>/dev/null || true
|
chmod 755 "$INSTALL_DIR/logs" 2>/dev/null || true
|
||||||
chmod 755 "$INSTALL_DIR/logs/"*/ 2>/dev/null || true # Subdirs like apps/
|
chmod 755 "$INSTALL_DIR/logs/"*/ 2>/dev/null || true # Subdirs like apps/
|
||||||
chmod 755 "$INSTALL_DIR/metric_cache" 2>/dev/null || true
|
chmod 755 "$INSTALL_DIR/metric_cache" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
# Store the commit hash for future update checks
|
# Store the commit hash for future update checks
|
||||||
# Note: LATEST_COMMIT will be empty on a fresh install, which is fine.
|
# Note: LATEST_COMMIT will be empty on a fresh install, which is fine.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue