Garfield (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 14: | Zeile 14: | ||
<pre> | <pre> | ||
sudo vi /mnt/synology/web1/home/garfield/bin/download_homepage.sh | sudo vi /mnt/synology/web1/home/garfield/bin/download_homepage.sh | ||
</pre | </pre> | ||
<pre> | <pre> | ||
#!/bin/sh | |||
# | |||
# Starts download of Garfield strips for /var/www/garfield/ | |||
# | |||
current_dir=`pwd` | |||
base_dir_binary=/home/martin/garfield | |||
base_dir_homepage=/var/www/garfield | |||
echo "Move to '$base_dir_homepage'..." | |||
cd $base_dir_homepage | |||
echo 'Downloading strips (Homepage)...' | |||
sudo -u www-data java -jar $base_dir_binary/bin/garfield-1.0.jar . | |||
echo "Move back to original folder ('$current_dir')..." | |||
cd $current_dir | |||
</pre/ | </pre/ | ||
Version vom 20. August 2020, 19:14 Uhr
Skripte
sudo mkdir -p /mnt/synology/web1/home/garfield/bin/ sudo touch /mnt/synology/web1/home/garfield/bin/download_homepage.sh sudo touch /mnt/synology/web1/home/garfield/bin/download_backup.sh sudo touch /mnt/synology/web1/home/garfield/bin/send.sh sudo chmod a+x /mnt/synology/web1/home/garfield/bin/*.sh
download_homepage.sh
sudo vi /mnt/synology/web1/home/garfield/bin/download_homepage.sh
#!/bin/sh # # Starts download of Garfield strips for /var/www/garfield/ # current_dir=`pwd` base_dir_binary=/home/martin/garfield base_dir_homepage=/var/www/garfield echo "Move to '$base_dir_homepage'..." cd $base_dir_homepage echo 'Downloading strips (Homepage)...' sudo -u www-data java -jar $base_dir_binary/bin/garfield-1.0.jar . echo "Move back to original folder ('$current_dir')..." cd $current_dir </pre/download_backup.sh
sudo vi /mnt/synology/web1/home/garfield/bin/download_backup.sh </pre/</pre/send.sh
sudo vi /mnt/synology/web1/home/garfield/bin/send.sh </pre/</pre/ Zurück zu Ubuntu