Mini Shell

Direktori : /usr/share/cagefs/
Upload File :
Current File : //usr/share/cagefs/065-passenger-cagefs

#!/usr/bin/bash

ARGS=$@
PACKAGE="ea-apache24-mod-passenger"

# passed arguments appears to be '--pkg_list=/tmp/tmp3fgs68qr',
# specifying the file containing the list of packages
# involved in the current transaction
file_name=$(echo "$ARGS" | awk -F '=' '{print $2}')
packages=$(cat "$file_name")

if [[ "$packages" =~ $PACKAGE ]]; then
    /usr/sbin/cagefsctl --reconfigure-cagefs
fi

exit 0

Zerion Mini Shell 1.0