Add MAM updater script (update.sh) and integrate into installer copy block
This commit is contained in:
@@ -141,6 +141,12 @@ if ! check_assets_present "."; then
|
||||
echo "remove.sh" >> "$MANIFEST_FILE"
|
||||
fi
|
||||
|
||||
if [ -f "$STAGE_DIR/deploy/update.sh" ] && [ ! -e "update.sh" ]; then
|
||||
cp "$STAGE_DIR/deploy/update.sh" update.sh || { echo "❌ Error: Failed to copy update.sh" >&2; exit 1; }
|
||||
chmod +x update.sh
|
||||
echo "update.sh" >> "$MANIFEST_FILE"
|
||||
fi
|
||||
|
||||
if [ -f "$STAGE_DIR/.env.example" ] && [ ! -e ".env.example" ]; then
|
||||
cp "$STAGE_DIR/.env.example" . || { echo "❌ Error: Failed to copy .env.example" >&2; exit 1; }
|
||||
echo ".env.example" >> "$MANIFEST_FILE"
|
||||
|
||||
Reference in New Issue
Block a user