瀏覽代碼

Banners for other system variants

Bob Mottram 10 年之前
父節點
當前提交
d17b7004d6
共有 1 個檔案被更改,包括 34 行新增9 行删除
  1. 34
    9
      install-freedombone.sh

+ 34
- 9
install-freedombone.sh 查看文件

144
   echo "|    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-' " >> /etc/motd
144
   echo "|    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-' " >> /etc/motd
145
   echo "'    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'" >> /etc/motd
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
   if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
171
   if [[ $SYSTEM_TYPE == "email" || $SYSTEM_TYPE == "mailbox" ]]; then
148
       echo '             .    .           . .              ' >> /etc/motd
172
       echo '             .    .           . .              ' >> /etc/motd
149
       echo '             |\  /|        o  | |              ' >> /etc/motd
173
       echo '             |\  /|        o  | |              ' >> /etc/motd
151
       echo '             |    |(   )   |  | |   )(   ) :   ' >> /etc/motd
175
       echo '             |    |(   )   |  | |   )(   ) :   ' >> /etc/motd
152
       echo '             '    ' `-' --'  - -' -'  `-'-' `- ' >> /etc/motd
176
       echo '             '    ' `-' --'  - -' -'  `-'-' `- ' >> /etc/motd
153
   fi
177
   fi
178
+
154
   echo '' >> /etc/motd
179
   echo '' >> /etc/motd
155
   echo '                  Freedom in the Cloud' >> /etc/motd
180
   echo '                  Freedom in the Cloud' >> /etc/motd
156
   echo '' >> /etc/motd
181
   echo '' >> /etc/motd
1017
       shred -zu /home/$MY_USERNAME/gpg-genkey.conf
1042
       shred -zu /home/$MY_USERNAME/gpg-genkey.conf
1018
       MY_GPG_PUBLIC_KEY_ID=$(su -c "gpg --list-keys $DOMAIN_NAME | grep 'pub ' | awk -F ' ' '{print $2}' | awk -F '/' '{print $2}'" - $MY_USERNAME)
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
       MY_GPG_PUBLIC_KEY=/tmp/public_key.gpg
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
   fi
1046
   fi
1022
 
1047
 
1023
   echo 'configure_gpg' >> $COMPLETION_FILE
1048
   echo 'configure_gpg' >> $COMPLETION_FILE
1237
       return
1262
       return
1238
   fi
1263
   fi
1239
   if [ ! $PRIVATE_MAILING_LIST ]; then
1264
   if [ ! $PRIVATE_MAILING_LIST ]; then
1240
-	  return
1265
+      return
1241
   fi
1266
   fi
1242
   if [ $PRIVATE_MAILING_LIST == $MY_USERNAME ]; then
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
   fi
1271
   fi
1247
   if [ ! $MY_GPG_PUBLIC_KEY ]; then
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
   fi
1277
   fi
1253
   apt-get -y --force-yes install ruby ruby-dev ruby-gpgme libgpgme11-dev libmagic-dev
1278
   apt-get -y --force-yes install ruby ruby-dev ruby-gpgme libgpgme11-dev libmagic-dev
1254
   gem install schleuder
1279
   gem install schleuder