Procházet zdrojové kódy

xmpp password command not needed

Bob Mottram před 7 roky
rodič
revize
e493578beb
2 změnil soubory, kde provedl 0 přidání a 71 odebrání
  1. binární
      man/freedombone-xmpp-pass.1.gz
  2. 0
    71
      src/freedombone-xmpp-pass

binární
man/freedombone-xmpp-pass.1.gz Zobrazit soubor


+ 0
- 71
src/freedombone-xmpp-pass Zobrazit soubor

@@ -1,71 +0,0 @@
1
-#!/bin/bash
2
-#
3
-# .---.                  .              .
4
-# |                      |              |
5
-# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-.
6
-# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
7
-# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
8
-#
9
-#                    Freedom in the Cloud
10
-#
11
-
12
-# Changes the password for an XMPP user
13
-
14
-# License
15
-# =======
16
-#
17
-# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
18
-#
19
-# This program is free software: you can redistribute it and/or modify
20
-# it under the terms of the GNU Affero General Public License as published by
21
-# the Free Software Foundation, either version 3 of the License, or
22
-# (at your option) any later version.
23
-#
24
-# This program is distributed in the hope that it will be useful,
25
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
26
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
-# GNU Affero General Public License for more details.
28
-#
29
-# You should have received a copy of the GNU Affero General Public License
30
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
31
-
32
-PROJECT_NAME='freedombone'
33
-
34
-export TEXTDOMAIN=${PROJECT_NAME}-xmpp-pass
35
-export TEXTDOMAINDIR="/usr/share/locale"
36
-
37
-EMAIL_ADDRESS=
38
-
39
-function show_help {
40
-    echo ''
41
-    echo $"${PROJECT_NAME}-xmpp-pass -e [email address]"
42
-    echo ''
43
-    exit 0
44
-}
45
-
46
-while [[ $# > 1 ]]
47
-do
48
-key="$1"
49
-
50
-case $key in
51
-    -h|--help)
52
-    show_help
53
-    ;;
54
-    -e|--email)
55
-    shift
56
-    EMAIL_ADDRESS="$1"
57
-    ;;
58
-    *)
59
-    # unknown option
60
-    ;;
61
-esac
62
-shift
63
-done
64
-
65
-if [ ! $EMAIL_ADDRESS ]; then
66
-    show_help
67
-fi
68
-
69
-prosodyctl passwd $EMAIL_ADDRESS
70
-
71
-exit 0