File tree 14 files changed +38
-15
lines changed
14 files changed +38
-15
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- if $DEBUG ; then echo " RUN LEX2110071928" ; fi
2
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110071928" ; fi
3
3
4
4
sudo apt update
5
5
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080655" ; fi
4
+
3
5
export mwmLocalSettings=" mwmLocalSettings.php"
4
6
5
7
initializemwmLocalSettings () {
@@ -9,9 +11,9 @@ initializemwmLocalSettings() {
9
11
10
12
export -f initializemwmLocalSettings
11
13
12
- compilemwmLocalSettings () {
14
+ compileMWMLocalSettings () {
13
15
$CONTAINER_COMMAND exec $MEDIAWIKI_CONTAINER_NAME /bin/bash -c " php $MEDIAWIKI_CLI_IN_CONTAINER /lib/compileMWMLocalSettings.php"
14
16
writeToSystemLog " Recompiled $mwmLocalSettings "
15
17
}
16
18
17
- export -f compilemwmLocalSettings
19
+ export -f compileMWMLocalSettings
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Public MWCLIBashScript: Check which PHP directives are currently added to LocalSettings.php.
3
3
source ./my-system.env
4
- if $DEBUG ; then echo " RUN LEX2110080553" ; fi
4
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080553" ; fi
5
5
6
6
printf " \n\033[0;32m\e[1mMWCLI Config\033[0m"
7
7
printf " \n============\n"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Public MWMBashScript: Check out primary system aspects.
3
+ clear;
4
+ set -a
5
+ source ./my-system.env
6
+ set +a
7
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080738" ; fi
8
+
9
+ $CONTAINER_COMMAND exec --env-file=./my-system.env \
10
+ $MEDIAWIKI_CONTAINER_NAME \
11
+ /bin/bash
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Public MWMBashScript:
3
+
4
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080657" ; fi
5
+
3
6
echo $MWCLI_CONFIG_DB_ON_HOSTING_SYSTEM
4
7
sqlite3 $MWCLI_CONFIG_DB_ON_HOSTING_SYSTEM " CREATE TABLE IF NOT EXISTS extensions (
5
8
id INTEGER PRIMARY KEY AUTOINCREMENT,
Original file line number Diff line number Diff line change 2
2
3
3
# CreateCampEMWCon2021: Check general permissions
4
4
5
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080658" ; fi
6
+
5
7
setPermissionsOnSystemInstanceRoot () {
6
8
7
9
dir=$MWCLI_SYSTEM_LOG_ON_HOSTING_SYSTEM
Original file line number Diff line number Diff line change 2
2
3
3
# CreateCampEMWCon2021: https://mwstake.org/mwstake/wiki/MWStake_MediaWiki_Manager/Infrastructure
4
4
source ./my-system.env
5
- if $DEBUG ; then echo " RUN LEX2110080554" ; fi
5
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080554" ; fi
6
6
7
7
if [ " ` ls /home` " != " " ]
8
8
then
9
- if $DEBUG ; then echo " RUN LEX2110080556 in $MEDIAWIKI_CONTAINER_NAME :$MEDIAWIKI_CLI_IN_CONTAINER " ; fi
9
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080556 in $MEDIAWIKI_CONTAINER_NAME :$MEDIAWIKI_CLI_IN_CONTAINER " ; fi
10
10
11
11
# source ./lib/utils.sh
12
- if $DEBUG ; then printf " INFO: \x1b[31mredirecting run command to \033[1m$CONTAINER_COMMAND exec $MEDIAWIKI_CONTAINER_NAME $MEDIAWIKI_CLI_IN_CONTAINER /` dirname $0 ` /` basename $0 ` " $1 " \n" ; fi
12
+ if [ -n " $DEBUG " ] ; then printf " INFO: \x1b[31mredirecting run command to \033[1m$CONTAINER_COMMAND exec $MEDIAWIKI_CONTAINER_NAME $MEDIAWIKI_CLI_IN_CONTAINER /` dirname $0 ` /` basename $0 ` " $1 " \n" ; fi
13
13
14
14
$CONTAINER_COMMAND exec --env-file=./my-system.env $MEDIAWIKI_CONTAINER_NAME /bin/bash -c " $MEDIAWIKI_CLI_IN_CONTAINER /` dirname $0 ` /` basename $0 ` $1 "
15
15
exit
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080657" ; fi
4
+
3
5
# Public MWCLIBashFunction
4
6
promptToContinue () {
5
7
printf " \n\n\e[2m"
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080656" ; fi
4
+
3
5
# Public MWCLIBashFunction
4
6
initializeSystemLog () {
5
7
FILE=$MWCLI_SYSTEM_LOG_ON_HOSTING_SYSTEM /system.log
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- CATALOGUE_URL=https://raw.githubusercontent.com/dataspects/mediawiki-manager /main/catalogues/extensions.json
3
+ CATALOGUE_URL=https://raw.githubusercontent.com/dataspects/mediawiki-installer /main/catalogues/extensions.json
4
4
5
5
# https://cameronnokes.com/blog/working-with-json-in-bash-using-jq/
6
6
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Public MWCLIBashScript: Check the current contents of $SYSTEM_ROOT_FOLDER_ON_HOSTING_SYSTEM/w/composer.local.json.
3
3
source ./my-system.env
4
- if $DEBUG ; then echo " RUN LEX2110080607" ; fi
4
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080607" ; fi
5
5
6
6
7
7
printf " \n\033[0;32m\e[1mcomposer.local.json\033[0m"
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ read MEDIAWIKI_IMAGE
13
13
./manage-system/stop.sh
14
14
$CONTAINER_COMMAND pod rm mwcli-deployment-pod-0
15
15
16
- envsubst < mediawiki-manager .tpl > mediawiki-manager .yml
17
- $CONTAINER_COMMAND play kube mediawiki-manager .yml
16
+ envsubst < mediawiki-installer .tpl > mediawiki-installer .yml
17
+ $CONTAINER_COMMAND play kube mediawiki-installer .yml
18
18
19
19
./system-snapshots/restore-restic-snapshot.sh latest
20
20
Original file line number Diff line number Diff line change 1
- DEBUG = false
2
1
3
2
LOCALUSER = dserver
4
3
MEDIAWIKI_CLI_IN_CONTAINER = /var/www/html/cli
5
- APACHE_CONF_ON_HOSTING_SYSTEM = " /home/$LOCALUSER /mediawiki-manager /conf/apache/sites-available"
4
+ APACHE_CONF_ON_HOSTING_SYSTEM = " /home/$LOCALUSER /mediawiki-installer /conf/apache/sites-available"
6
5
APACHE_CONF_IN_CONTAINER = /etc/apache2/sites-available
7
6
MEDIAWIKI_CONTAINER_NAME = mwm-deployment-pod-0-mediawiki
8
7
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Public MWMBashScript: Check out primary system aspects.
3
3
clear;
4
- source ./my-system.env
5
- if $DEBUG ; then echo " RUN LEX2110080552" ; fi
4
+ set -a
5
+ source ./my-system.env
6
+ set +a
7
+ if [ -n " $DEBUG " ] ; then echo " RUN LEX2110080552" ; fi
6
8
7
9
./config-db/view-mwm-config.sh
8
10
./manage-system/show-composerLocalJSON.sh
You can’t perform that action at this time.
0 commit comments