blob: a959dfd0d32600231c5c4e5bc355345fe7fc7ceb (
plain) (
tree)
|
|
#!/bin/sh
FILE=$(mktemp)
if ! php /srv/openslx/www/slx-admin/api.php init > "$FILE" 2>&1; then
php /srv/openslx/www/slx-admin/api.php init --crashreport "$FILE"
elif [ -s "$FILE" ]; then
php /srv/openslx/www/slx-admin/api.php init --logreport "$FILE"
fi
rm -- "$FILE"
sleep 1
exit 0
|