Fix app interfaces

This commit is contained in:
Bob Mottram 2016-07-06 14:43:20 +01:00
parent e7233c4fe9
commit 737ea96f7f
10 changed files with 46 additions and 18 deletions

View File

@ -281,10 +281,8 @@ if [ ! "$?" = "0" ]; then
fi
setup_utils
setup_mesh
setup_email
setup_web
script_for_attaching_usb_drive
setup_apps
setup_final

View File

@ -32,7 +32,7 @@
ENABLE_BATMAN="no"
BATMAN_CELLID='any'
function configure_firewall_for_batman {
function configure_firewall_for_batma {
if grep -Fxq "configure_firewall_for_batman" $COMPLETION_FILE; then
return
fi

View File

@ -129,7 +129,7 @@ function remove_cjdns {
sed -i '/configure_firewall_for_cjdns/d' $COMPLETION_FILE
}
function install_cjdns {
function install_cjdns_main {
if [[ $ENABLE_CJDNS != "yes" ]]; then
return
fi
@ -138,7 +138,7 @@ function install_cjdns {
function_check set_repo_commit
set_repo_commit /etc/cjdns "cjdns commit" "$CJDNS_COMMIT" $CJDNS_REPO
if grep -Fxq "install_cjdns" $COMPLETION_FILE; then
if grep -Fxq "install_cjdns_main" $COMPLETION_FILE; then
return
fi
@ -418,7 +418,7 @@ function install_cjdns {
function_check configure_firewall_for_cjdns
configure_firewall_for_cjdns
echo 'install_cjdns' >> $COMPLETION_FILE
echo 'install_cjdns_main' >> $COMPLETION_FILE
}
function install_cjdns_tools {
@ -480,4 +480,13 @@ function install_cjdns_tools {
echo 'install_cjdns_tools' >> $COMPLETION_FILE
}
function install_cjdns {
if grep -Fxq "install_cjdns" $COMPLETION_FILE; then
return
fi
install_cjdns_main
install_cjdns_tools
echo 'install_cjdns' >> $COMPLETION_FILE
}
# NOTE: deliberately no exit 0

View File

@ -69,8 +69,8 @@ function remove_dlna {
sed -i '/install_dlna/d' $COMPLETION_FILE
}
function install_dlna {
if grep -Fxq "install_dlna" $COMPLETION_FILE; then
function install_dlna_main {
if grep -Fxq "install_dlna_main" $COMPLETION_FILE; then
return
fi
if [[ $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CHAT" || $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" || $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
@ -121,7 +121,7 @@ function install_dlna {
function_check configure_firewall_for_dlna
configure_firewall_for_dlna
echo 'install_dlna' >> $COMPLETION_FILE
echo 'install_dlna_main' >> $COMPLETION_FILE
}
function script_for_attaching_usb_drive {
@ -163,4 +163,13 @@ function script_for_attaching_usb_drive {
echo 'script_for_attaching_usb_drive' >> $COMPLETION_FILE
}
function install_dlna {
if grep -Fxq "install_dlna" $COMPLETION_FILE; then
return
fi
install_dlna_main
script_for_attaching_usb_drive
echo 'install_dlna' >> $COMPLETION_FILE
}
# NOTE: deliberately no exit 0

View File

@ -443,9 +443,13 @@ function install_rss_mobile_reader {
}
function install_rss {
if grep -Fxq "install_rss" $COMPLETION_FILE; then
return
fi
install_rss_main
install_rss_gnusocial
install_rss_mobile_reader
echo 'install_rss' >> $COMPLETION_FILE
}
# NOTE: deliberately no exit 0

View File

@ -34,9 +34,13 @@ function backup_vpn {
function remove_vpn {
apt-get -y remove --purge fastd
sed -i '/install_vpn/d' $COMPLETION_FILE
}
function install_vpn {
if grep -Fxq "install_vpn" $COMPLETION_FILE; then
return
fi
if ! grep -q "repo.universe-factory.net" /etc/apt/sources.list; then
echo 'deb http://repo.universe-factory.net/debian/ sid main' >> /etc/apt/sources.list
gpg --keyserver pgpkeys.mit.edu --recv-key 16EF3F64CB201D9C
@ -50,6 +54,7 @@ function install_vpn {
exit 52026
fi
fi
echo 'install_vpn' >> $COMPLETION_FILE
}
# NOTE: deliberately there is no "exit 0"

View File

@ -408,8 +408,12 @@ function install_xmpp_client {
}
function install_xmpp {
if grep -Fxq "install_xmpp" $COMPLETION_FILE; then
return
fi
install_xmpp_main
install_xmpp_client
echo 'install_xmpp' >> $COMPLETION_FILE
}
# NOTE: deliberately no exit 0

View File

@ -459,10 +459,14 @@ function install_zeronet_main {
}
function install_zeronet {
if grep -Fxq "install_zeronet" $COMPLETION_FILE; then
return
fi
install_zeronet_main
install_zeronet_blog
install_zeronet_mail
install_zeronet_forum
echo 'install_zeronet' >> $COMPLETION_FILE
}
# NOTE: deliberately no exit 0

View File

@ -111,3 +111,5 @@ function install_apps {
app_index=$[app_index+1]
done
}
# NOTE: deliberately no exit 0

View File

@ -291,13 +291,6 @@ function setup_utils {
upgrade_golang
}
function setup_mesh {
install_cjdns
install_cjdns_tools
install_batman
install_babel
}
function setup_email {
install_email
create_procmail