Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔀 MERGE: Features and Fixes for version 0.0.4 #70

Merged
merged 154 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
ffa3e9e
📖 DOC: https://github.com/apolopena/gitpod-laravel8-starter/issues/58…
apolopena Mar 8, 2021
b9f8a39
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/45
apolopena Mar 8, 2021
ed860fb
🤖 TEST: phpmyadmin
apolopena Mar 8, 2021
f919455
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/45
apolopena Mar 8, 2021
19db3be
🐛 FIX: path
apolopena Mar 8, 2021
d44a70e
🐛 FIX: typo in path
apolopena Mar 8, 2021
385dc46
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/45
apolopena Mar 8, 2021
205d5ab
🐛 FIX: remove quotes in sed for phpmyadmin
apolopena Mar 8, 2021
898b15d
🤖 TEST: special chars
apolopena Mar 8, 2021
b8a8001
🤖 TEST: restore test back to dynamic state
apolopena Mar 8, 2021
c66d59c
🐛 FIX: phpmyadmin config
apolopena Mar 8, 2021
ea7f6a8
🐛 FIX: @ breaks things when generated string starts with one
apolopena Mar 8, 2021
c21546a
🐛 FIX: create phpmyadmin db
apolopena Mar 8, 2021
a7caeae
🐛 FIX: spinner
apolopena Mar 8, 2021
42d7f7e
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/45
apolopena Mar 8, 2021
5c345dd
🐛 FIX: credentials
apolopena Mar 8, 2021
b3c1c63
🐛 FIX: go back to cp of config.sample.inc.php
apolopena Mar 8, 2021
fd695ec
🤖 TEST: rsync progress
apolopena Mar 9, 2021
489f38a
👌 IMPROVE: https://github.com/apolopena/gitpod-laravel8-starter/issue…
apolopena Mar 9, 2021
a59ce69
🐛 FIX: tweak rsync progress
apolopena Mar 9, 2021
187e110
🐛 FIX: tweak rsync progress
apolopena Mar 9, 2021
43614d0
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
4dadc4d
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
b4cbd04
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
c7541c2
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
7822324
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
5cddef7
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
44dc05a
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
3d1b38b
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
6e1bec6
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
cd5c4d8
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
5259a52
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
514c0a4
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
42bc6c9
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
e8ee937
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
112b0a3
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
c199c7b
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
8e62ab1
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
966ac01
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
e1f4cdf
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
2577869
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
4dd195f
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
0db8961
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
69bb080
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
4b614e4
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
6c678d4
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
4da5921
🐛 FIX: rsync stats, restored spinner for speed
apolopena Mar 9, 2021
cba7044
🐛 FIX: use native rsync progress option
apolopena Mar 9, 2021
a9d7606
🐛 FIX: colorized rsync stats
apolopena Mar 9, 2021
bbd6062
🐛 FIX: log messages
apolopena Mar 9, 2021
564b22f
👌 IMPROVE: remove auth, edit comments
apolopena Mar 10, 2021
fed0fbf
👌 IMPROVE: Installtion information API for https://github.com/apolope…
apolopena Mar 10, 2021
987ecb5
📖 DOC: comments
apolopena Mar 10, 2021
9696d9c
🤖 TEST: call yarn installs less
apolopena Mar 10, 2021
4dfb949
🤖 TEST: call yarn installs less
apolopena Mar 10, 2021
5f51361
🐛 FIX: refactor to save calls to yarn install
apolopena Mar 10, 2021
6a0441c
🐛 FIX: refactor to save calls to yarn install
apolopena Mar 10, 2021
8f0a78b
🤖 TEST: refactor to save calls to yarn install
apolopena Mar 10, 2021
74b9756
🐛 FIX: load spinner
apolopena Mar 10, 2021
279ffd6
🐛 FIX: error mix not found
apolopena Mar 10, 2021
44180ae
🐛 FIX: tweak order
apolopena Mar 10, 2021
03dba41
🐛 FIX: line 130: printf: --: invalid option
apolopena Mar 10, 2021
c2c50a4
🐛 FIX: line 130: printf: --: invalid option
apolopena Mar 10, 2021
b6fc7cc
🐛 FIX: tweaks
apolopena Mar 10, 2021
d654e26
🤖 TEST: fix npm error
apolopena Mar 10, 2021
d5d14dd
🤖 TEST: error in npm when install react scaffolding
apolopena Mar 10, 2021
a464b39
🤖 TEST: with no yarn run dev after node modules are installed
apolopena Mar 11, 2021
1c880b7
🤖 TEST: installs
apolopena Mar 11, 2021
55266ca
🐛 FIX: tweaks for less npm installs can rless running of laravel mix
apolopena Mar 11, 2021
ce9f0a8
🤖 TEST: tweaks for installs
apolopena Mar 11, 2021
916b36a
🐛 FIX: install info API, bad regexp
apolopena Mar 11, 2021
040a4f2
🐛 FIX: new logic for installs
apolopena Mar 11, 2021
c96f71f
🐛 FIX: run_laraval_mix_twice
apolopena Mar 11, 2021
b6f8bd4
🐛 FIX: run_laravel_mix twice in the wrong spot
apolopena Mar 11, 2021
ef32985
🤖 TEST: run larvel mix twice
apolopena Mar 11, 2021
790c80a
🤖 TEST: run larvel mix twice
apolopena Mar 11, 2021
86c4da5
🐛 FIX: fresh start on getting out of this hole
apolopena Mar 15, 2021
e6e0898
🤖 TEST: vue install
apolopena Mar 15, 2021
925ec12
🤖 TEST: adding in laravel mix run when installing laravel/ui
apolopena Mar 15, 2021
e593134
🤖 TEST: adding in laravel mix run when installing laravel/ui, remove …
apolopena Mar 15, 2021
92b0b77
🤖 TEST: no npm install after install of larvel/ui
apolopena Mar 15, 2021
f8cdab4
🤖 TEST: remove inistal npm install
apolopena Mar 15, 2021
8a0460f
🤖 TEST: remove inistal npm install
apolopena Mar 15, 2021
bb9b6f6
🤖 TEST: remove inistal npm install
apolopena Mar 15, 2021
54a0271
🤖 TEST: react install
apolopena Mar 15, 2021
b9a95e1
🤖 TEST: no front end scaffolding installs, still install node modules
apolopena Mar 15, 2021
0f16da9
🐛 FIX: typo
apolopena Mar 15, 2021
aa3b172
🤖 TEST: no front end scaffolding installs
apolopena Mar 15, 2021
2b5aa95
🐛 FIX: conditional
apolopena Mar 15, 2021
eec5f48
📖 DOC: comments
apolopena Mar 15, 2021
8cda4e8
🐛 FIX: make successes a silent log
apolopena Mar 15, 2021
d3cf9dd
🐛 FIX: install conditions, ready to test
apolopena Mar 15, 2021
d7fc204
📖 DOC: fixed and tested one-liners for project creation
apolopena Mar 15, 2021
872d6f2
🐛 FIX: typo in condition
apolopena Mar 16, 2021
fd060b5
🐛 FIX: install node modules blindly to avoid frontend scaffolding ove…
apolopena Mar 16, 2021
60e3c72
🐛 FIX: remove uneccessary function
apolopena Mar 16, 2021
3caaf0f
🐛 FIX: phpmyadmin install
apolopena Mar 18, 2021
86f6090
🐛 FIX: path to public/phpmyadmin/config.inc.php
apolopena Mar 18, 2021
36a286a
👌 IMPROVE: enhanced phpmyadmin setup logic
apolopena Mar 19, 2021
d2e9bba
👌 IMPROVE: https://github.com/apolopena/gitpod-laravel8-starter/issue…
apolopena Mar 20, 2021
a2c223e
🐛 FIX: refactor https://github.com/apolopena/gitpod-laravel8-starter/…
apolopena Mar 20, 2021
eb42053
🐛 FIX: rename and fix
apolopena Mar 21, 2021
04b727d
🐛 FIX: path
apolopena Mar 21, 2021
3c02789
🐛 FIX: file name
apolopena Mar 21, 2021
0c1dd8c
📖 DOC: https://github.com/apolopena/gitpod-laravel8-starter/issues/66…
apolopena Mar 21, 2021
5520d54
👌 IMPROVE: no trailing newline for .txt files
apolopena Mar 21, 2021
74b2f8f
👌 IMPROVE: https://github.com/apolopena/gitpod-laravel8-starter/issue…
apolopena Mar 21, 2021
9a797cc
📖 DOC: improve message
apolopena Mar 21, 2021
5d937fa
📖 DOC: improve message
apolopena Mar 21, 2021
4d035cd
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/67…
apolopena Mar 21, 2021
bf65e2a
👌 IMPROVE: log messages
apolopena Mar 22, 2021
609fb7d
👌 IMPROVE: https://github.com/apolopena/gitpod-laravel8-starter/issue…
apolopena Mar 22, 2021
2da56cf
👌 IMPROVE: success messages are logged silently
apolopena Mar 22, 2021
2d8592e
👌 IMPROVE: add silent log
apolopena Mar 22, 2021
ea12a27
🐛 FIX: log messages
apolopena Mar 22, 2021
2e2657b
🐛 FIX: logs and comments
apolopena Mar 22, 2021
7819825
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/63
apolopena Mar 22, 2021
b55f8fd
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/41…
apolopena Mar 22, 2021
f928ec9
🤖 TEST: force workspace image build
apolopena Mar 22, 2021
d9a37db
🐛 FIX: rsync path
apolopena Mar 22, 2021
e6a5083
🐛 FIX: log message
apolopena Mar 22, 2021
036e68f
🐛 FIX: message
apolopena Mar 22, 2021
da6e2b9
🐛 FIX: message
apolopena Mar 22, 2021
dc51c73
🐛 FIX: message
apolopena Mar 22, 2021
84d54d3
👌 IMPROVE: https://github.com/apolopena/gitpod-laravel8-starter/issue…
apolopena Mar 22, 2021
7d72cbe
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/39…
apolopena Mar 22, 2021
34ddf78
📖 DOC: update as per https://github.com/apolopena/gitpod-laravel8-sta…
apolopena Mar 22, 2021
557dff8
🐛 FIX: summary message
apolopena Mar 22, 2021
8f368e8
🐛 FIX: messaging
apolopena Mar 22, 2021
ad67970
🐛 FIX: https://github.com/apolopena/gitpod-laravel8-starter/issues/69
apolopena Mar 22, 2021
a69a4d2
🐛 FIX: fine tune, logic and logs
apolopena Mar 22, 2021
121dbc8
🐛 FIX: wording
apolopena Mar 22, 2021
ebc49f2
🐛 FIX: edit log message
apolopena Mar 22, 2021
431b6b3
🐛 FIX: alias: add changed to ad
apolopena Mar 22, 2021
6c24dcb
🐛 FIX: log silent on env injection success
apolopena Mar 22, 2021
4f6e82c
🐛 FIX: log msg
apolopena Mar 22, 2021
bde0aaa
🤖 TEST: fix broken web preview spinner
apolopena Mar 22, 2021
a5838c4
🤖 TEST: fix for hung preview
apolopena Mar 22, 2021
28278f3
👌 IMPROVE: hung preview fix
apolopena Mar 23, 2021
88e7d0e
🤖 TEST: preview browser fix
apolopena Mar 23, 2021
a92cdd1
🤖 TEST: phpmyadmin install=0
apolopena Mar 23, 2021
7a73c0e
♻️ REFACTOR: preview browser
apolopena Mar 23, 2021
3b0b1ab
👌 IMPROVE: preview browser message
apolopena Mar 23, 2021
19acaec
🐛 FIX: removed preview browser open msg since https://github.com/apol…
apolopena Mar 23, 2021
a089ee3
🤖 TEST: barebones install
apolopena Mar 23, 2021
e710758
🤖 TEST: changelog generator
apolopena Mar 23, 2021
d9eca98
🤖 TEST: force workspace image build
apolopena Mar 23, 2021
c7cf6f1
🤖 TEST: changelog generator
apolopena Mar 23, 2021
80cfd4e
⚰️ REMOVE: workaround code for https://github.com/apolopena/gitpod-la…
apolopena Mar 23, 2021
6b13144
🤖 TEST: force workspace image build
apolopena Mar 23, 2021
abd0579
🐛 FIX: init scripts should not depend on eachothers success
apolopena Mar 23, 2021
4285b2c
🤖 TEST: force workspace image build
apolopena Mar 23, 2021
1382b21
📖 DOC: edit and enhance README
apolopena Mar 24, 2021
48aa53a
🐛 FIX: removed ... from log messages
apolopena Mar 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .example.starter.env

This file was deleted.

18 changes: 4 additions & 14 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,11 @@ RUN sudo touch /var/log/workspace-init.log \

RUN sudo touch /var/log/xdebug.log \
&& sudo chmod 666 /var/log/xdebug.log

RUN sudo mkdir /var/log/apache2 \
&& sudo chmod 755 /var/log/apache2

RUN sudo touch /var/log/apache2/access.log \
&& sudo chmod 666 /var/log/apache2/access.log

RUN sudo touch /var/log/apache2/error.log \
&& sudo chmod 666 /var/log/apache2/error.log

RUN sudo touch /var/log/apache2/other_vhosts_access.log \
&& sudo chmod 666 /var/log/apache2/other_vhosts_access.log

RUN sudo apt-get update -q \
&& sudo apt-get install -y rsync \
&& sudo apt-get install -y grc
&& sudo apt-get install -y grc \
&& sudo apt-get install -y progress

RUN wget http://xdebug.org/files/xdebug-3.0.2.tgz \
&& tar -xvzf xdebug-3.0.2.tgz \
Expand All @@ -42,8 +31,9 @@ RUN sudo bash -c ". /tmp/update-composer.sh" && rm /tmp/update-composer.sh

# gitpod trick to bypass the docker caching mechanism for all lines below this one
# just increment the value each time you want to bypass the cache system
ENV INVALIDATE_CACHE=125
ENV INVALIDATE_CACHE=130

COPY --chown=gitpod:gitpod bash/.bash_aliases /home/gitpod
COPY --chown=gitpod:gitpod bash/utils.sh /tmp
COPY --chown=gitpod:gitpod starter.ini /tmp
COPY --chown=gitpod:gitpod bash/scaffold-project.sh /tmp
Expand Down
14 changes: 8 additions & 6 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ ports:
tasks:
- before: bash bash/before-tasks.sh
init: |
bash bash/init-gitpod.sh &&
bash bash/init-optional-scaffolding.sh &&
bash bash/init-project.sh &&
bash bash/init-gitpod.sh
bash bash/init-optional-scaffolding.sh
bash bash/init-phpmyadmin.sh
bash bash/init-project.sh
bash bash/init-complete.sh
name: Startup
- openMode: split-left
Expand All @@ -43,9 +44,10 @@ tasks:
. bash/third-party/spinner.sh &&
start_spinner "Opening preview when system is ready..."
gp sync-await gitpod-inited &&
default_server=$(bash bash/utils.sh parse_ini_value starter.ini development default_server); \
open_preview $default_server &&
stop_spinner $?
stop_spinner 0 &&
__port=$(bash bash/helpers.sh get_default_server_port); \
gp await-port $__port &&
gp preview $(gp url $__port)
name: Main Terminal

vscode:
Expand Down
5 changes: 5 additions & 0 deletions .starter.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These values will be used by the script bash/change-passwords.sh
# All varaiable mus be present in .starter.env
# All varaibles must have a value set
PHPMYADMIN_SUPERUSER_PW=
PHPMYADMIN_CONTROLUSER_PW=
353 changes: 234 additions & 119 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions bash/.bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file is sourced into ~/.bashrc
# Add any alias you would like here

# Updates all passwords related to phpmyadmin from values set in .starter.env
# Requires .starter.env to have all phpmyadmin related keys set with values
# Empty string value will break the script
# See .starter.env.example for the required phpmyadmin keys
alias update_pma_pws="bash $GITPOD_REPO_ROOT/bash/change-passwords.sh phpmyadmin"
alias help_update_pma_pws="cat bash/snippets/messages/help-update-pma-pws.txt"
25 changes: 14 additions & 11 deletions bash/before-tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,39 @@ log_silent () {
# Some rake tasks are dynamic and depend on the configuration in starter.ini
if [ "$(bash bash/utils.sh parse_ini_value starter.ini github-changelog-generator install)" ]; then
msg="Writing rake tasks"
log "$msg..." &&
log_silent "$msg..." &&
bash bash/init-rake-tasks.sh
if [ $? == 0 ]; then
log "SUCCESS: $msg"
log_silent "SUCCESS: $msg"
else
log "ERROR: $msg" -e
fi
fi


# Aliases for git
msg="\ngit aliases have been written"
msg="git aliases have been written"
bash bash/utils.sh add_file_to_file_after \\[alias\\] bash/snippets/emoji-log ~/.gitconfig &&
bash bash/utils.sh add_file_to_file_after \\[alias\\] bash/snippets/git-aliases ~/.gitconfig &&
log "$msg" &&
log "\ntry: git a or: git aliases\nto see what is available.\n"
log_silent "$msg" &&
log_silent "try: git a or: git aliases to see what is available."

# grc color configuration for apache logs
msg="Creating grc color configuration file for apache logs: ~/apache-log-colors.conf"
log "$msg..." &&
msg="Creating grc color configuration file for apache logs in ~/apache-log-colors.conf"
log_silent "$msg..." &&
cat bash/snippets/grc/apache-log-colors > ~/apache-log-colors.conf
if [ $? == 0 ]; then
log "SUCCESS: $msg"
log_silent "SUCCESS: $msg"
else
log "ERROR: $msg" -e
fi

# Keep this at the bottom of the file
# Restores files marked as persistant
# See persist_file in bash/helpers.sh
# Restore files marked as persistant such
# as workspace-init.log
# See persist_file in bash/helpers.sh for how to system works
# Keep this block at the bottom of the file so that any logging from this
# script is only written to file upon initialization! Otherwise workspace-init.log
# will get written to from this script upon every wrokspace restart.
if [ $(bash bash/helpers.sh is_inited) == 1 ]; then
bash bash/helpers.sh restore_persistent_files $GITPOD_REPO_ROOT
fi
105 changes: 105 additions & 0 deletions bash/change-passwords.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
#!/bin/bash
#
# change-passwords.sh
#
# Description:
# changes passwords for phpmyadmin from the defaults in version control to the values set in .starter.env
# Author: Apolo Pena
#
# NOTE:
# This script should be always run at least once by the user as an mandatory additional layer of security
# This script requires the file .starter.env to exist along will all the key value pairs as set
# in example.starter.ini

# Load spinner
. bash/third-party/spinner.sh

phpmyadmin() {
# Keep keys in sequence. Add new keys to the end of the array
local keys=(PHPMYADMIN_SUPERUSER_PW PHPMYADMIN_CONTROLUSER_PW)

local name="change-passwords.sh phpmyadmin"
local err="$name ERROR:"
local config_file="public/phpmyadmin/config.inc.php"
local all_zeros='^0$|^0*0$'
local exit_codes
local values

for key in ${keys[@]}; do
local value="$(bash bash/helpers.sh get_starter_env_val $key)"
values+=("$(bash bash/helpers.sh get_starter_env_val $key)")
local code="$?"
exit_codes+=$code
# show error message of called function
[ $code != 0 ] && echo "$value"
done

if [[ ! $(echo ${exit_codes[@]} | tr -d '[:space:]') =~ $all_zeros ]]; then
echo "$err retrieving values, no passwords were changed."
exit 1
fi

# Values have been set and there are no errors so far so change passwords
i=0
for key in ${keys[@]}; do
case $key in
"${keys[0]}")
msg="Changing password for phpmyadmin user 'pmasu' to the value found in .starter.env"
start_spinner "$msg"
mysql -e "ALTER USER 'pmasu'@'%' IDENTIFIED BY '${values[$i]}'; FLUSH PRIVILEGES;"
stop_spinner $?
;;
"${keys[1]}")
msg="Changing password for phpmyadmin user 'pma' to the value found in .starter.env"
start_spinner "$msg"
mysql -e "ALTER USER 'pma'@'localhost' IDENTIFIED BY '${values[$i]}'; FLUSH PRIVILEGES;"
err_code=$?
stop_spinner $err_code
if [ $err_code == 0 ]; then
msg="Updating control user password in $config_file"
line="\$cfg['Servers'][\$i]['controlpass'] ="
_edit="\$cfg['Servers'][\$i]['controlpass'] = '${values[$i]}';"
start_spinner "$msg"
# Match the line where the password for the controluser is set
line_num=$(awk '/^\$cfg.*'controlpass'.*=.*;$/ {print FNR}' $config_file)
if [ -z $line_num ]; then
stop_spinner 1
echo "ERROR: No line found beginning with: $line \n\tin the file: $config_file"
echo "You will need to manually update the control user password in $config_file"
else
sed -i "$line_num c\\$_edit" $config_file
err_code=$?
stop_spinner $err_code
unset _edit
[ $err_code == 0 ] &&
echo -e "\e[38;5;171mPROCESS COMPLETE\e[0m" &&
echo -e "\e[1;33mCheck the console output for any possible failures.\e[0m" &&
echo -en "\e[1;36m" &&
echo "If you are logged into phpmyadmin, log out and log back in." &&
echo "For additional security you can delete .starter.env" &&
echo "Just make sure you remember your passwords from that file." &&
echo "If you ever loose your passwords you may always set them again" &&
echo "using this script and new values set in .starter.env" &&
echo -e "\e[0m"
fi
fi
;;
*)
echo "$err unidentified key $value"
;;
esac
((i++))
done
}

# Call functions from this script gracefully
if declare -f "$1" > /dev/null
then
# call arguments verbatim
"$@"
else
echo "utils.sh: '$1' is not a known function name." >&2
exit 1
fi

#echo -e "$(change_phpmyadmin_passwords)"
Loading