diff --git a/easyinstall.sh b/easyinstall.sh index 4a980fef..2f7f2cd4 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -876,6 +876,8 @@ function installMacproxy { # Installs vsftpd (FTP server) function installFtp() { + echo + echo "Installing packages..." sudo apt-get update && sudo apt-get install vsftpd --assume-yes --no-install-recommends
- {% if env["netatalk_configured"] == 1 %} - {{ _("The AppleShare server is running. No active connections.") }} + {% if env["netatalk_configured"] %} + {{ _("Mac AFP file sharing is enabled.") }} + {% if env["webmin_configured"] %} + + {{ ("Server administration") }} + + {% endif %} + {% else %} + {{ _("Mac AFP file sharing is disabled.") }} {% endif %} - {% if env["netatalk_configured"] == 2 %} - {{ _("%(value)d active AFP connection", value=(env["netatalk_configured"] - 1)) }} - {% elif env["netatalk_configured"] > 2 %} - {{ _("%(value)d active AFP connections", value=(env["netatalk_configured"] - 1)) }} +
+
+ {% if env["samba_configured"] %} + {{ _("Windows SMB file sharing is enabled.") }} + {% if env["webmin_configured"] %} + + {{ ("Server administration") }} + + {% endif %} + {% else %} + {{ _("Windows SMB file sharing is disabled.") }} + {% endif %} +
+
+ {% if env["ftp_configured"] %} + {{ _("FTP file sharing is enabled.") }} + {% else %} + {{ _("FTP file sharing is disabled.") }} {% endif %}
{% if env["macproxy_configured"] %} - {{ _("Macproxy is running at %(ip_addr)s (default port 5000)", ip_addr=env['ip_addr']) }} + {{ _("Macproxy is running at %(ip_addr)s (default port 5000)", ip_addr=env['ip_addr']) }} + {% else %} + {{ _("Macproxy is disabled.") }} {% endif %}
+
{{ _("PiSCSI software version:") }} {{ env["version"] }}
diff --git a/python/web/src/web.py b/python/web/src/web.py index a550a95c..6829b3d4 100644 --- a/python/web/src/web.py +++ b/python/web/src/web.py @@ -106,7 +106,10 @@ def get_env_info(): "image_dir": server_info["image_dir"], "image_root_dir": Path(server_info["image_dir"]).name, "netatalk_configured": sys_cmd.running_proc("afpd"), + "samba_configured": sys_cmd.running_proc("smbd"), + "ftp_configured": sys_cmd.running_proc("vsftpd"), "macproxy_configured": sys_cmd.running_proc("macproxy"), + "webmin_configured": sys_cmd.running_proc("miniserv.pl"), "cd_suffixes": tuple(server_info["sccd"]), "rm_suffixes": tuple(server_info["scrm"]), "mo_suffixes": tuple(server_info["scmo"]),