Просмотр исходного кода

Banners for other system variants

Bob Mottram 10 лет назад
Родитель
Сommit
d17b7004d6
1 измененных файлов: 34 добавлений и 9 удалений
  1. 34
    9
      install-freedombone.sh

+ 34
- 9
install-freedombone.sh Просмотреть файл

@@ -144,6 +144,30 @@ function change_login_message {
144 144
   echo "|    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-' " >> /etc/motd
145 145
   echo "'    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'" >> /etc/motd
146 146
 
147
+  if [ $SYSTEM_TYPE == "cloud" ]; then
148
+      echo '                  .--..             . ' >> /etc/motd
149
+      echo '                 :    |             | ' >> /etc/motd
150
+      echo '                 |    | .-. .  . .-.| ' >> /etc/motd
151
+      echo '                 :    |(   )|  |(   | ' >> /etc/motd
152
+      echo "                   --' - -' `-- - -' -" >> /etc/motd
153
+  fi
154
+
155
+  if [ $SYSTEM_TYPE == "chat" ]; then
156
+      echo '                  .--..         .   ' >> /etc/motd
157
+      echo '                 :    |        _|_  ' >> /etc/motd
158
+      echo '                 |    |--. .-.  |   ' >> /etc/motd
159
+      echo '                 :    |  |(   ) |   ' >> /etc/motd
160
+      echo "                   --''   - -' - -' " >> /etc/motd
161
+  fi
162
+
163
+  if [ $SYSTEM_TYPE == "social" ]; then
164
+      echo '               .-.                    .  ' >> /etc/motd
165
+      echo '              (   )           o       |  ' >> /etc/motd
166
+      echo '               `-.  .-.  .-.  .  .-.  |  ' >> /etc/motd
167
+      echo '              (   )(   )(     | (   ) |  ' >> /etc/motd
168
+      echo "               `-'  `-'   -'-'  - -' - - " >> /etc/motd
169
+  fi
170
+
147 171
   if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
148 172
       echo '             .    .           . .              ' >> /etc/motd
149 173
       echo '             |\  /|        o  | |              ' >> /etc/motd
@@ -151,6 +175,7 @@ function change_login_message {
151 175
       echo '             |    |(   )   |  | |   )(   ) :   ' >> /etc/motd
152 176
       echo '             '    ' `-' --'  - -' -'  `-'-' `- ' >> /etc/motd
153 177
   fi
178
+
154 179
   echo '' >> /etc/motd
155 180
   echo '                  Freedom in the Cloud' >> /etc/motd
156 181
   echo '' >> /etc/motd
@@ -1017,7 +1042,7 @@ function configure_gpg {
1017 1042
       shred -zu /home/$MY_USERNAME/gpg-genkey.conf
1018 1043
       MY_GPG_PUBLIC_KEY_ID=$(su -c "gpg --list-keys $DOMAIN_NAME | grep 'pub ' | awk -F ' ' '{print $2}' | awk -F '/' '{print $2}'" - $MY_USERNAME)
1019 1044
       MY_GPG_PUBLIC_KEY=/tmp/public_key.gpg
1020
-	  su -c "gpg --output $MY_GPG_PUBLIC_KEY --armor --export $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
1045
+      su -c "gpg --output $MY_GPG_PUBLIC_KEY --armor --export $MY_GPG_PUBLIC_KEY_ID" - $MY_USERNAME
1021 1046
   fi
1022 1047
 
1023 1048
   echo 'configure_gpg' >> $COMPLETION_FILE
@@ -1237,18 +1262,18 @@ function create_private_mailing_list {
1237 1262
       return
1238 1263
   fi
1239 1264
   if [ ! $PRIVATE_MAILING_LIST ]; then
1240
-	  return
1265
+      return
1241 1266
   fi
1242 1267
   if [ $PRIVATE_MAILING_LIST == $MY_USERNAME ]; then
1243
-	  echo 'The name of the private mailing list should not be the'
1244
-	  echo 'same as your username'
1245
-	  exit 10
1268
+      echo 'The name of the private mailing list should not be the'
1269
+      echo 'same as your username'
1270
+      exit 10
1246 1271
   fi
1247 1272
   if [ ! $MY_GPG_PUBLIC_KEY ]; then
1248
-	  echo 'To create a private mailing list you need to specify a file'
1249
-	  echo 'containing your exported GPG key within MY_GPG_PUBLIC_KEY at'
1250
-	  echo 'the top of the script'
1251
-	  exit 11
1273
+      echo 'To create a private mailing list you need to specify a file'
1274
+      echo 'containing your exported GPG key within MY_GPG_PUBLIC_KEY at'
1275
+      echo 'the top of the script'
1276
+      exit 11
1252 1277
   fi
1253 1278
   apt-get -y --force-yes install ruby ruby-dev ruby-gpgme libgpgme11-dev libmagic-dev
1254 1279
   gem install schleuder