mirror of
https://github.com/loviuz/loviuz-website.git
synced 2024-12-22 21:38:37 +01:00
12 lines
392 B
Bash
12 lines
392 B
Bash
#!/bin/sh
|
|
|
|
# Creazione file statici per Hugo
|
|
hugo --gc
|
|
|
|
# Eliminazione file generati inutilizzati
|
|
find public/ -name \*xcf -exec rm -f "{}" \;
|
|
#find public/ -name \*jpg -exec rm -f "{}" \;
|
|
find public/ -name \*png -exec rm -f "{}" \;
|
|
|
|
rclone sync --interactive --sftp-host sftp.example.com --sftp-user www-data --sftp-password obscured_password public/ :sftp:/domains/tuosito.it/public_html/
|