minor fix
[distro-setup] / mount-latest-subvol
index 894ece520546cf9b099072ba00327df8b12ea5b0..bbcf69bd124ab967a45c589413d4e9c24f601811 100644 (file)
@@ -408,8 +408,8 @@ for vol in q a o i; do
     ## begin expire leaf vols ##
     leaf_vols=($vol.leaf.*)
     count=${#leaf_vols[@]}
-    leaf_limit_time=$(( $(date +%s) - 60*60*24*60 )) # 60 days
-    leaf_new_limit_time=$(( $(date +%s) - 60*60*24 )) # 1 day
+    leaf_limit_time=$(( EPOCHSECONDS - 60*60*24*60 )) # 60 days
+    leaf_new_limit_time=$(( EPOCHSECONDS - 60*60*24 )) # 1 day
     # this goes backwards from oldest. leaf_new_limit_time is just in case
     # the order gets screwed up or something.
     for leaf in ${leaf_vols[@]}; do
@@ -440,7 +440,7 @@ done
 
 
 
-for dir in /mnt/r7/amy/{root,boot}_ubuntubionic /mnt/{root2/root,boot2/boot}_ubuntubionic; do
+for dir in /mnt/r7/amy/{root/root,boot/boot}_ubuntubionic /mnt/{root2/root,boot2/boot}_ubuntubionic; do
   vol=${dir##*/}
   root_dir=${dir%/*}
   if [[ ! -d $root_dir ]]; then