if[$local_space -ge $remote_space];thenecho"WARNING... $remote has only $remote_space Mo while you want upload $local_space Mo. Do you want stop ? [y/N]"; read_confirm;fi
@ -123,12 +123,11 @@ for remote in $wwwlist; do
done
local_space=`du -sm $dir_export/$staticfilesdir| sed 's/^\([0-9]\+\)\t.*$/\1/'`
for remote in $staticlist;do
#TODO: calculer la taille de la destination (df $subdocroot) && pas de deploiement si cela depasse !!
# Be sure to have space for deploying
local_space=`du -sm $dir_export/www/static/ | sed 's/^\([0-9]\+\)\t.*$/\1/'`
if[$local_s -ge $remote_s];thenecho"WARNING... $remote has only $remote_s Mo while you want upload $local_s Mo : stop deploy now with Ctrl+C";read enter;fi