# Check if puppet is installed
if [ ! -e "$FOLDER/usr/bin/puppet" ]; then
echo "Installing dependencies..."
- $DEPLOY_COMMAND aptitude update
- $DEPLOY_COMMAND aptitude install $DEPLOY_DEPENDENCIES -y
+ $DEPLOY_COMMAND apt-get update
+ $DEPLOY_COMMAND apt-get install $DEPLOY_DEPENDENCIES -y
fi
# Create folders
# Check if puppet is installed
if [ ! -e "/usr/bin/puppet" ]; then
- $SUDO aptitude update
- $SUDO aptitude install $DEPLOY_DEPENDENCIES -y
+ $SUDO apt-get update
+ $SUDO apt-get install $DEPLOY_DEPENDENCIES -y
fi
# Run puppet
##### BEGIN REMOTE SCRIPT #####
if ! which puppet &> /dev/null; then
echo "Installing dependencies..."
- sudo aptitude update
- sudo aptitude install $DEPLOY_DEPENDENCIES -y
+ sudo apt-get update
+ sudo apt-get install $DEPLOY_DEPENDENCIES -y
fi
##### END REMOTE SCRIPT #######
EOF
##### BEGIN REMOTE SCRIPT #####
if ! which git &> /dev/null; then
echo "Installing git..."
- sudo aptitude update
- sudo aptitude install git-core -y
+ sudo apt-get update
+ sudo apt-get install git-core -y
fi
# Git version
# Validation
if [ "$BASENAME" == "mass-update" ]; then
- COMMAND="aptitude update"
+ COMMAND="apt-get update"
elif [ "$BASENAME" == "mass-upgrade" ]; then
COMMAND="DEBIAN_FRONTEND=noninteractive hydractl upgrade clean"
elif [ "$BASENAME" == "mass-web" ]; then
if ! which git &> /dev/null; then
echo "Installing git..."
- $sudo aptitude update
- $sudo aptitude install git-core -y
+ $sudo apt-get update
+ $sudo apt-get install git-core -y
fi
# Git version
# Cleanup procedures
function hydra_system_upgrade_cleanup {
- apt-get autoremove -y
+ apt-get autoremove -y --purge
apt-get clean
hydra_system_upgrade_stage custom
}
# Custom upgrade procedures
function hydra_system_upgrade_custom {
- if [ "$nextrelease" == "wheezy" ]; then
- # Old suhosin config
- rm -f /etc/php5/conf.d/suhosin.ini
-
- # This has to be manually installed again
- if [ -f "/etc/php5/cli/conf.d/uploadprogress.ini" ]; then
- pecl uninstall uploadprogress
- pecl install uploadprogress
- fi
- fi
+ #if [ "$nextrelease" == "jessie" ]; then
+ # # Do your custom jessie stuff here
+ #fi
hydractl trac-upgrade
hydra_system_upgrade_stage puppet
# Issue upgrade
if ! $sudo lsof /var/lib/dpkg/lock &> /dev/null; then
- $sudo aptitude update
- $sudo aptitude full-upgrade -y
+ $sudo apt-get update
+ $sudo apt-get full-upgrade -y
else
echo "Apt is locked, aborting."
fi
# Cleanup
if [ "$CLEAN" == "clean" ]; then
- $sudo aptitude clean
+ $sudo apt-get clean
fi