]> gitweb.fluxo.info Git - hydra.git/commitdiff
Automatic deploy commit; apt-get clean on system-upgrade; TODO update
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 15 Feb 2013 21:57:04 +0000 (19:57 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 15 Feb 2013 21:57:04 +0000 (19:57 -0200)
lib/hydra/misc
share/hydra/bootless
share/hydractl/system-upgrade

index 0de97131bdf939f7acc12c382a03f0b062fb0d4a..75ea0e907533b263d58b198d9114cd82d360a271 100644 (file)
@@ -2,7 +2,7 @@
 
 # Set needed environment variables and do basic checks
 function hydra_set_env {
-  export COMMIT="439d340c3daeb7e186366a05877141907d0ba66d"
+  export COMMIT="`( cd $APP_BASE && git log -n 1 --pretty=oneline | cut -d " " -f 1 )`"
   export CONFIG="$HOME/.hydra/config"
   export ACTION="$1"
 
index 9bad724e91d287a42e09dbc598f067db11204fff..511b3174c942aa45b4108ebcc63bcb70ea926362 100755 (executable)
@@ -314,6 +314,7 @@ function hydra_bootless_device {
 }
 
 # Generate a bootless disk image
+# TODO: optionally copy to removable media
 function hydra_bootless_image {
   local output="$1"
 
index aae2ba5eff5b83e841cdfe79b3024c95a1845d5a..5dfe126448b3a61a03875a6e85d96a1beb5af819 100755 (executable)
@@ -65,6 +65,9 @@ fi
 # Remove unused packages
 apt-get autoremove
 
+# Cleanup package cache
+apt-get clean
+
 # Custom procedures
 if [ "$nextrelease" == "wheezy" ]; then
   # Old suhosin config