maintaince module
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
```bash
|
||||
# 1. database — nell'ordine, tutti idempotenti
|
||||
cd public/userarea/manutenzioni/sql
|
||||
for f in 1_rename_production_tools 2_create_tables 3_seed_and_link 4_permissions; do
|
||||
mysql -u <user> -p <database> < $f.sql
|
||||
done
|
||||
|
||||
# 2. dati reali del cliente dagli XLS (facoltativo)
|
||||
mysql -u <user> -p <database> < 5_import_from_xls.sql
|
||||
|
||||
# 3. cartella allegati scrivibile
|
||||
chmod 755 ../attachments && chown www-data:www-data ../attachments
|
||||
|
||||
# 4. cron giornaliero delle notifiche
|
||||
echo '0 7 * * * php /var/www/html/public/userarea/manutenzioni/cron/send_notifications.php' | crontab -
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user