Bonjour,
J'ai besoin d'aide pour faire un script.
celui-ci doit être intéractif, c'est à dire qui demande rentrer une variable qui sera ensuite réutiliser dans le reste du script.
Voici ce que le script devrait faire:
mkdir /mnt/home/$USER/torrents/rutorrent
mkdir /mnt/home/$USER/torrents/deluge
chown $USER:$USER /mnt/home/$USER/torrents
chown $USER:$USER /mnt/home/$USER/torrents/deluge
chown $USER:www-data /mnt/home/$USER/torrents/rtorrent
et
insertion dans crontab -e (/var/spool/cron/crontabs/root)
/bin/chown -R $USER:$USER /home/$USER/torrents/rtorrent
/bin/chown -R $USER:$USER /home/$USER/torrents/deluge
en vous remerciant pour votre aide.