mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +00:00
working notice
This commit is contained in:
parent
6730b83875
commit
0a7d39bc5e
7
management/announce_check.py
Normal file
7
management/announce_check.py
Normal file
@ -0,0 +1,7 @@
|
||||
import subprocess
|
||||
|
||||
def download_announcements( ignorePrivacy=False ):
|
||||
if( (ignorePrivacy == True) or ( ) ):
|
||||
f =
|
||||
|
||||
subprocess.call("pullAnnouncements.sh", shell=True)
|
5
management/pullAnnouncements.py
Normal file
5
management/pullAnnouncements.py
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd_command=`cat /usr/local/bin/mailinabox |grep cd`
|
||||
|
||||
if[[cd_command]]
|
@ -25,9 +25,7 @@ if [ -z "${NONINTERACTIVE:-}" ]; then
|
||||
|
||||
if [ -z "${I_AGREE_MAILINABOX:-}" ]; then
|
||||
|
||||
is_config_agreed=$( check_config_agreed && echo "true" || echo "false")
|
||||
|
||||
if [ "$is_config_agreed" -eq "false"]; then
|
||||
if [ "$(check_config_agreed; echo $?)" -eq "1"]; then
|
||||
|
||||
#makes sure the user is aware of our legal stuff.
|
||||
message_box "Mail-in-a-Box Legal Notice" \
|
||||
@ -47,9 +45,7 @@ if [ -z "${NONINTERACTIVE:-}" ]; then
|
||||
I_AGREE_MAILINABOX=$(/bin/true)
|
||||
else
|
||||
|
||||
is_config_agreed=$( check_config_agreed && echo "true" || echo "false")
|
||||
|
||||
if [ "$is_config_agreed" -eq "true"]; then
|
||||
if [ "$(check_config_agreed; echo $?)" -eq "0"]; then
|
||||
I_AGREE_MAILINABOX=$(/bin/true)
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user