From d56f9d16f18fce77332c1d48ad120f32b49b7b8f Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 3 Sep 2020 12:46:30 +0100 Subject: [PATCH] modularise configuration files --- install/config/local/apache | 4 ++++ install/config/local/litespeed | 13 +++++++++++++ install/config/local/local | 4 ++++ install/config/local/mariadb | 3 +++ install/config/local/mysql | 2 ++ install/config/local/nginx | 5 +++++ install/config/local/php | 5 +++++ install/config/local/ssh | 5 +++++ install/config/local/user | 6 ++++++ install/config/local/wp | 24 ++++++++++++++++++++++++ install/config/remote/apache | 4 ++++ install/config/remote/litespeed | 13 +++++++++++++ install/config/remote/local | 4 ++++ install/config/remote/mariadb | 3 +++ install/config/remote/mysql | 2 ++ install/config/remote/nginx | 5 +++++ install/config/remote/php | 5 +++++ install/config/remote/ssh | 5 +++++ install/config/remote/user | 7 +++++++ install/config/remote/wp | 24 ++++++++++++++++++++++++ install/export-to-remote.sh | 0 install/import-from-remote.sh | 0 install/install-local.sh | 0 install/install-remote.sh | 0 24 files changed, 143 insertions(+) create mode 100644 install/config/local/apache create mode 100644 install/config/local/litespeed create mode 100644 install/config/local/local create mode 100644 install/config/local/mariadb create mode 100644 install/config/local/mysql create mode 100644 install/config/local/nginx create mode 100644 install/config/local/php create mode 100644 install/config/local/ssh create mode 100644 install/config/local/user create mode 100644 install/config/local/wp create mode 100644 install/config/remote/apache create mode 100644 install/config/remote/litespeed create mode 100644 install/config/remote/local create mode 100644 install/config/remote/mariadb create mode 100644 install/config/remote/mysql create mode 100644 install/config/remote/nginx create mode 100644 install/config/remote/php create mode 100644 install/config/remote/ssh create mode 100644 install/config/remote/user create mode 100644 install/config/remote/wp create mode 100755 install/export-to-remote.sh create mode 100755 install/import-from-remote.sh create mode 100755 install/install-local.sh create mode 100755 install/install-remote.sh diff --git a/install/config/local/apache b/install/config/local/apache new file mode 100644 index 0000000..5af2fbe --- /dev/null +++ b/install/config/local/apache @@ -0,0 +1,4 @@ +## apache configuration +# +## uncomment if using apache +#apache2_version='latest' diff --git a/install/config/local/litespeed b/install/config/local/litespeed new file mode 100644 index 0000000..079ea89 --- /dev/null +++ b/install/config/local/litespeed @@ -0,0 +1,13 @@ +## litespeed configuration +## uncomment if using litespeed + +## specify specific version from latest, 54, 55, 56, 70, 71, 72, 73 or 74 +#export litespeed_version='latest' + +## php version +#export ls_lsphp_version='73' + +## https://openlitespeed.org/kb/1-click-install/ +## password used to log into litespeed web interface +#export ls_webadmin_pass='admin' + diff --git a/install/config/local/local b/install/config/local/local new file mode 100644 index 0000000..c061ab9 --- /dev/null +++ b/install/config/local/local @@ -0,0 +1,4 @@ +## export if using local development environment +#export domain='test123.home' +#export url='http://test123.home' + diff --git a/install/config/local/mariadb b/install/config/local/mariadb new file mode 100644 index 0000000..ff7bee2 --- /dev/null +++ b/install/config/local/mariadb @@ -0,0 +1,3 @@ +## uncomment if using mariadb +#mariadb_version='latest' + diff --git a/install/config/local/mysql b/install/config/local/mysql new file mode 100644 index 0000000..bb4af32 --- /dev/null +++ b/install/config/local/mysql @@ -0,0 +1,2 @@ +## uncomment if using mysql +#mysql_version='latest' diff --git a/install/config/local/nginx b/install/config/local/nginx new file mode 100644 index 0000000..37f2e01 --- /dev/null +++ b/install/config/local/nginx @@ -0,0 +1,5 @@ +## nginx configuration + +## uncomment if using nginx +#nginx_version='latest' + diff --git a/install/config/local/php b/install/config/local/php new file mode 100644 index 0000000..14bde46 --- /dev/null +++ b/install/config/local/php @@ -0,0 +1,5 @@ +## php configuration +# +## uncomment if using php +#php_version='latest' + diff --git a/install/config/local/ssh b/install/config/local/ssh new file mode 100644 index 0000000..7c4f08b --- /dev/null +++ b/install/config/local/ssh @@ -0,0 +1,5 @@ +## ssh configuration + +## uncomment if connecting via ssh +#export ssh='root@test123.home' + diff --git a/install/config/local/user b/install/config/local/user new file mode 100644 index 0000000..c49dfe3 --- /dev/null +++ b/install/config/local/user @@ -0,0 +1,6 @@ +## user configuration +## uncomment to set user + +## webuser/webgroup +#export webuser='ray' +#export webgroup='ray' diff --git a/install/config/local/wp b/install/config/local/wp new file mode 100644 index 0000000..10ef314 --- /dev/null +++ b/install/config/local/wp @@ -0,0 +1,24 @@ +## wordpress configuration - uncomment if using wordpress + +# export wp_user='admin' +# export wp_pass='admin' + +## leave commented if using default +# export wp_path='/var/www/html/wordpress' + +# export db_root_pass='root' +# export wp_db_name='wordpress' +# export wp_db_user='wordpress' +# export wp_db_pass='wordpress' + +## list of themes to install - first one will be activate +# export wp_themes="twentytwenty" + +## list of plugins to install +# export wp_plugins="" + +## list of plugins to activate +# export wp_plugins_active="block-lab" + +## list of plugins to uninstall +# export wp_plugins_uninstall="hello aksimet" diff --git a/install/config/remote/apache b/install/config/remote/apache new file mode 100644 index 0000000..b8d87d9 --- /dev/null +++ b/install/config/remote/apache @@ -0,0 +1,4 @@ +## apache configuration + +## uncomment if using apache +#apache2_version='latest' diff --git a/install/config/remote/litespeed b/install/config/remote/litespeed new file mode 100644 index 0000000..6eb8a17 --- /dev/null +++ b/install/config/remote/litespeed @@ -0,0 +1,13 @@ +## litespeed configuration +## uncomment if using litespeed + +## specify specific version from latest, 54, 55, 56, 70, 71, 72, 73 or 74 +#export litespeed_version='latest' + +## php version +#export ls_lsphp_version='73' + +## https://openlitespeed.org/kb/1-click-install/ +## password used to log into litespeed web interface +#export ls_webadmin_pass='x7__+85676--Dd' + diff --git a/install/config/remote/local b/install/config/remote/local new file mode 100644 index 0000000..56436a0 --- /dev/null +++ b/install/config/remote/local @@ -0,0 +1,4 @@ +## export if using local development environment +#export domain='test123.example.com' +#export url='http://test123.example.com' + diff --git a/install/config/remote/mariadb b/install/config/remote/mariadb new file mode 100644 index 0000000..ff7bee2 --- /dev/null +++ b/install/config/remote/mariadb @@ -0,0 +1,3 @@ +## uncomment if using mariadb +#mariadb_version='latest' + diff --git a/install/config/remote/mysql b/install/config/remote/mysql new file mode 100644 index 0000000..bb4af32 --- /dev/null +++ b/install/config/remote/mysql @@ -0,0 +1,2 @@ +## uncomment if using mysql +#mysql_version='latest' diff --git a/install/config/remote/nginx b/install/config/remote/nginx new file mode 100644 index 0000000..37f2e01 --- /dev/null +++ b/install/config/remote/nginx @@ -0,0 +1,5 @@ +## nginx configuration + +## uncomment if using nginx +#nginx_version='latest' + diff --git a/install/config/remote/php b/install/config/remote/php new file mode 100644 index 0000000..14bde46 --- /dev/null +++ b/install/config/remote/php @@ -0,0 +1,5 @@ +## php configuration +# +## uncomment if using php +#php_version='latest' + diff --git a/install/config/remote/ssh b/install/config/remote/ssh new file mode 100644 index 0000000..bce9c98 --- /dev/null +++ b/install/config/remote/ssh @@ -0,0 +1,5 @@ +## ssh configuration + +## uncomment if connecting via ssh +#export ssh='root@test123.example.com' + diff --git a/install/config/remote/user b/install/config/remote/user new file mode 100644 index 0000000..e8e848a --- /dev/null +++ b/install/config/remote/user @@ -0,0 +1,7 @@ +## user configuration +## uncomment to set user + +## webuser/webgroup +## leave commented for default +#export webuser='www-data' +#export webgroup='www-data' diff --git a/install/config/remote/wp b/install/config/remote/wp new file mode 100644 index 0000000..4e4f840 --- /dev/null +++ b/install/config/remote/wp @@ -0,0 +1,24 @@ +## wordpress configuration - uncomment if using wordpress + +# export wp_user='admin' +# export wp_pass='' + +## leave commented if using default +# export wp_path='/var/www/html/wordpress' + +# export db_root_pass='9dn,s93j_UU9--s889d8dUY' +# export wp_db_name='wordpress' +# export wp_db_user='wordpress' +# export wp_db_pass='__d39fhi3nkjdflk8-ddWEs' + +## list of themes to install - first one will be activate +# export wp_themes="twentytwenty" + +## list of plugins to install +# export wp_plugins="" + +## list of plugins to activate +# export wp_plugins_active="" + +## list of plugins to uninstall +# export wp_plugins_uninstall="hello aksimet" diff --git a/install/export-to-remote.sh b/install/export-to-remote.sh new file mode 100755 index 0000000..e69de29 diff --git a/install/import-from-remote.sh b/install/import-from-remote.sh new file mode 100755 index 0000000..e69de29 diff --git a/install/install-local.sh b/install/install-local.sh new file mode 100755 index 0000000..e69de29 diff --git a/install/install-remote.sh b/install/install-remote.sh new file mode 100755 index 0000000..e69de29