Prepare for translations
This commit is contained in:
parent
bf2f9ca063
commit
6fc3017853
|
@ -30,6 +30,11 @@
|
|||
|
||||
NO_OF_ARGS=$#
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# Web site
|
||||
FREEDOMBONE_WEBSITE="http://freedombone.uk.to"
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
HOSTNAME=
|
||||
LETSENCRYPT_HOSTNAME=
|
||||
COUNTRY_CODE="US"
|
||||
|
@ -177,7 +182,7 @@ if [ $LETSENCRYPT_HOSTNAME ]; then
|
|||
fi
|
||||
sed -i "s|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.bundle.crt|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.pem|g" /etc/nginx/sites-available/$LETSENCRYPT_HOSTNAME
|
||||
sed -i "s|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.crt|ssl_certificate /etc/ssl/certs/${LETSENCRYPT_HOSTNAME}.pem|g" /etc/nginx/sites-available/$LETSENCRYPT_HOSTNAME
|
||||
|
||||
|
||||
# link the private key
|
||||
if [ -f /etc/ssl/private/${LETSENCRYPT_HOSTNAME}.key ]; then
|
||||
if [ ! -f /etc/ssl/private/${LETSENCRYPT_HOSTNAME}.key.old ]; then
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
EMAILADDRESS=
|
||||
GROUP_NAME=
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
MAILINGLIST=
|
||||
SUBJECTTAG=
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MY_USERNAME=
|
||||
EXTENSION=
|
||||
PASSWORD=
|
||||
|
@ -71,11 +76,11 @@ function update_sip_user {
|
|||
fi
|
||||
if [[ "$line" == *"<secret>"* ]]; then
|
||||
line="<secret>$PASSWORD</secret>"
|
||||
fi
|
||||
fi
|
||||
if [[ "$line" == *"<display>"* ]]; then
|
||||
line="<display>$MY_USERNAME $EXTENSION</display>"
|
||||
USER_FOUND=
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo $line >> $NEW_CONFIG_FILE
|
||||
done < $CONFIG_FILE
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MY_USERNAME=$1
|
||||
SSH_PUBLIC_KEY="$2"
|
||||
GPG_KEYSERVER='hkp://keys.gnupg.net'
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
EMAIL_ADDRESS=
|
||||
NEW_USER_PASSWORD=
|
||||
|
||||
|
@ -77,7 +82,7 @@ if [ ! $NEW_USER_PASSWORD ]; then
|
|||
else
|
||||
USERNAME=$(echo $EMAIL_ADDRESS | awk -F '@' '{print $1}')
|
||||
DOMAIN_NAME=$(echo $EMAIL_ADDRESS | awk -F '@' '{print $2}')
|
||||
prosodyctl register $USERNAME $DOMAIN_NAME "$NEW_USER_PASSWORD"
|
||||
prosodyctl register $USERNAME $DOMAIN_NAME "$NEW_USER_PASSWORD"
|
||||
if [ ! "$?" = "0" ]; then
|
||||
exit 2
|
||||
fi
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
CURR_USER=$USER
|
||||
|
||||
# Version number of this script
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
USERNAME=
|
||||
COUNTRY_CODE="US"
|
||||
AREA="Free Speech Zone"
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
|
||||
NO_OF_ARGS=$#
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# Web site
|
||||
FREEDOMBONE_WEBSITE="http://freedombone.uk.to"
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
COMPLETION_FILE=$HOME/freedombone-completed.txt
|
||||
SELECTED_USERNAME=
|
||||
SIP_CONFIG_FILE=/etc/sipwitch.conf
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# Default username for disk images
|
||||
DEFAULT_IMAGE_USERNAME='freedom'
|
||||
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
if [ ! $1 ]; then
|
||||
echo 'Specify a drive, such as sdb, sdc, etc'
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
EMAIL_ADDRESS=
|
||||
SUBJECT_TEXT=
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
IMAGE_TYPE='beaglebone'
|
||||
CURR_DIR=$(pwd)
|
||||
CURR_USER=$(echo $USER)
|
||||
|
|
|
@ -31,6 +31,9 @@ set -x
|
|||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MY_USERNAME='debian'
|
||||
MY_PASSWORD='freedombone'
|
||||
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
enable_serial_console() {
|
||||
# By default, spawn a console on the serial port
|
||||
device="$1"
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
|
||||
set -e # Exit on first error
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
#set -x # Enable debugging
|
||||
|
||||
IMAGE=$1
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
mkdir -p vendor
|
||||
if [ -d vendor/vmdebootstrap ] ; then
|
||||
(cd vendor/vmdebootstrap; git checkout .; git pull)
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
USB_DRIVE=/dev/sdb1
|
||||
USB_MOUNT=/mnt/usb
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
WEBSERVER_LOG_LEVEL='warn'
|
||||
|
||||
if [ ! "$1" ]; then
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MUMBLE_PATH=/usr/bin/mumble
|
||||
TOXIC_PATH=/usr/bin/toxic
|
||||
DHTNODES=/usr/share/toxic/DHTnodes
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# client or server installations sounds odd for a mesh, but this
|
||||
# indicates whether this is a dedicated mesh peer ("yes") or
|
||||
# a 'client' such as a laptop or desktop machine with
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
# The number of arguments
|
||||
NO_OF_ARGS=$#
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# Version number of this script
|
||||
VERSION="1.01"
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
FRIENDS_SERVERS_LIST=
|
||||
MY_USERNAME=
|
||||
GPG_USB_DRIVE='sdb1'
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
|
||||
NO_OF_ARGS=$#
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
# User to create the list for
|
||||
MY_USERNAME=$USER
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
HOSTNAME=
|
||||
PROVIDER='startssl'
|
||||
DH_KEYLENGTH=2048
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
|
||||
function show_help {
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
MAILINGLIST=
|
||||
LIST_ADDRESS=
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MY_USERNAME=$1
|
||||
CONFIG_FILE=/etc/sipwitch.conf
|
||||
USER_EXISTS="no"
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MY_USERNAME=$1
|
||||
COMPLETION_FILE=$HOME/freedombone-completed.txt
|
||||
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
EMAIL_ADDRESS=
|
||||
|
||||
function show_help {
|
||||
|
|
|
@ -28,6 +28,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
SSL_PROTOCOLS=
|
||||
SSL_CIPHERS=
|
||||
SSH_CIPHERS=
|
||||
|
@ -404,11 +409,11 @@ function renew_startssl {
|
|||
--msgbox "An existing certificate for $renew_domain was not found" 6 40
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
if [[ $renew_domain != *"."* ]]; then
|
||||
dialog --title "Renew a StartSSL certificate" \
|
||||
--msgbox "Invalid domain name: $renew_domain" 6 40
|
||||
return
|
||||
return
|
||||
fi
|
||||
|
||||
freedombone-renew-cert -h $renew_domain -p startssl
|
||||
|
@ -445,11 +450,11 @@ function renew_letsencrypt {
|
|||
--msgbox "An existing certificate for $renew_domain was not found" 6 40
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
if [[ $renew_domain != *"."* ]]; then
|
||||
dialog --title "Renew a Let's Encrypt certificate" \
|
||||
--msgbox "Invalid domain name: $renew_domain" 6 40
|
||||
return
|
||||
return
|
||||
fi
|
||||
|
||||
freedombone-renew-cert -h $renew_domain -p 'letsencrypt'
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
CONFIG_FILE=/etc/sipwitch.conf
|
||||
|
||||
maxnum=201
|
||||
|
|
|
@ -34,6 +34,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
KEY_FRAGMENTS=3
|
||||
MY_USERNAME=
|
||||
MY_EMAIL_ADDRESS=
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
MYUSERNAME=$USER
|
||||
EMAIL_ADDRESS=
|
||||
SUBJECT_TEXT=
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
EMAIL_ADDRESS=
|
||||
|
||||
function show_help {
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
PROJECT_NAME='freedombone'
|
||||
|
||||
export TEXTDOMAIN=$PROJECT_NAME
|
||||
export TEXTDOMAINDIR="/usr/share/locale"
|
||||
|
||||
WEB_PAGE_TITLE="Freedombone Mesh"
|
||||
TRACKER_PORT=6969
|
||||
ZERONET_INSTALL=/opt/zeronet
|
||||
|
|
Loading…
Reference in New Issue