This commit is contained in:
Bob Mottram 2016-10-16 20:00:20 +01:00
parent 607d4bdc95
commit 31300402d4
6 changed files with 11 additions and 11 deletions

View File

@ -208,7 +208,7 @@ function gnusocial_create_database {
}
function gnusocial_running_script {
if ! grep -Fxq "install_gnusocial" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi

View File

@ -256,7 +256,7 @@ function configure_firewall_for_irc {
if [ ! -d /etc/ngircd ]; then
return
fi
if grep -Fxq "configure_firewall_for_irc" ${COMPLETION_FILE}; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
if [[ ${INSTALLED_WITHIN_DOCKER} == "yes" ]]; then

View File

@ -114,7 +114,7 @@ function upgrade_rss {
# remove any previous install
if [ -d $RSS_READER_PATH/g2ttree-mobile ]; then
if grep -Fxq "install_rss_mobile_reader" $COMPLETION_FILE; then
if [[ $(is_completed "install_rss_mobile_reader") == "1" ]]; then
sed -i '/install_rss_mobile_reader/d' $COMPLETION_FILE
sed -i '/rss mobile reader commit/d' $COMPLETION_FILE
rm -rf $RSS_READER_PATH/g2ttree-mobile
@ -523,7 +523,7 @@ function install_rss_gnusocial {
set_repo_commit $RSS_READER_GNUSOCIAL_PATH "rss reader gnusocial commit" "$RSS_READER_GNUSOCIAL_COMMIT" $RSS_READER_GNUSOCIAL_REPO
chown -R www-data:www-data $RSS_READER_GNUSOCIAL_PATH
if grep -Fxq "install_rss_gnusocial" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
@ -560,14 +560,14 @@ function install_rss_mobile_reader {
# remove any previous install
if [ -d $RSS_READER_PATH/g2ttree-mobile ]; then
if grep -Fxq "install_rss_mobile_reader" $COMPLETION_FILE; then
if [[ $(is_completed "install_rss_mobile_reader") == "1" ]]; then
sed -i '/install_rss_mobile_reader/d' $COMPLETION_FILE
sed -i '/rss mobile reader commit/d' $COMPLETION_FILE
rm -rf $RSS_READER_PATH/g2ttree-mobile
fi
fi
if grep -Fxq "install_rss_mobile_reader" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi

View File

@ -248,7 +248,7 @@ function email_client {
if [ ! -d /etc/exim4 ]; then
return
fi
if grep -Fxq "email_client" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
apt-get -y install mutt-patched lynx abook
@ -607,7 +607,7 @@ function import_email {
Now on your internet router forward ports
25, 587, 465, 993 and 2222 to the ${PROJECT_NAME}
"
if grep -Fxq "import_email" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
if [[ $SYSTEM_TYPE == "mail"* ]]; then
function_check backup_to_friends_servers
backup_to_friends_servers
@ -673,7 +673,7 @@ function install_email {
if [[ $SYSTEM_TYPE == "mesh"* ]]; then
return
fi
if grep -Fxq "install_email" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
apt-get -y remove postfix

View File

@ -102,7 +102,7 @@ function configure_firewall {
}
function configure_firewall_ping {
if grep -Fxq "configure_firewall_ping" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
# Only allow ping for mesh installs

View File

@ -110,7 +110,7 @@ function initial_setup {
function search_for_attached_usb_drive {
# If a USB drive is attached then search for email,
# gpg, ssh keys and emacs configuration
if grep -Fxq "search_for_attached_usb_drive" $COMPLETION_FILE; then
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
if [ -b $USB_DRIVE ]; then