tor-router/check_install.sh.php

11 lines
253 B
PHP
Raw Normal View History

2014-03-09 03:34:23 +00:00
<?php require('./config.php'); ?>
#!/bin/bash
export INSTALL=""
<?php foreach (explode(',', CHECK_INSTALL) as $install) { ?>
if [ ! -e /usr/bin/polipo ]; then
export INSTALL="$INSTALL <?php echo $install; ?>"
fi
<?php } ?>
apt-get install -y $INSTALL