Skip to content

Commit

Permalink
Update: LEMPer CLI tool install
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Jul 7, 2024
1 parent 2a9774a commit 3f4487e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/install_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ function init_tools_install() {
run cp -f lib/lemper-db.sh /etc/lemper/cli-plugins/lemper-db && \
run chmod ugo+x /etc/lemper/cli-plugins/lemper-db

run cp -f lib/lemper-sslgen.sh /etc/lemper/cli-plugins/lemper-selfssl && \
run chmod ugo+x /etc/lemper/cli-plugins/lemper-selfssl

run cp -f lib/lemper-fixpermission.sh /etc/lemper/cli-plugins/lemper-fixpermission && \
run chmod ugo+x /etc/lemper/cli-plugins/lemper-fixpermission

run cp -f lib/lemper-bench.sh /etc/lemper/cli-plugins/lemper-bench && \
run chmod ugo+x /etc/lemper/cli-plugins/lemper-bench

# Remove old LEMPer CLI tool.
[ -d /usr/local/lib/lemper ] && run rm -fr /usr/local/lib/lemper/lemper-*

Expand All @@ -72,7 +81,6 @@ function init_tools_install() {

# Install PHP Info
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php56'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php70'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php71'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php72'
Expand All @@ -81,6 +89,7 @@ function init_tools_install() {
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php80'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php81'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php82'
run bash -c 'echo "<?php phpinfo(); ?>" > /usr/share/nginx/html/lcp/phpinfo.php83'

# Install Adminer for Web-based MySQL Administration Tool.
[ ! -d /usr/share/nginx/html/lcp/dbadmin ] && run mkdir -p /usr/share/nginx/html/lcp/dbadmin
Expand Down

0 comments on commit 3f4487e

Please sign in to comment.