浏览代码

moved _configure_permissions up, added License notice in main comment

master
Bryan Joshua Pedini 5 年前
父节点
当前提交
b4fd605d01
共有 1 个文件被更改,包括 10 次插入8 次删除
  1. +10
    -8
      install.sh

+ 10
- 8
install.sh 查看文件

@@ -8,6 +8,8 @@
# UNIX commands. #
# #
# Copyright (c) 2020 - Bryan Pedini #
# Licensed under the Gnu General Public License 3.0 (or later), see the #
# LICENSE file for more details #
# #
###############################################################################

@@ -105,6 +107,14 @@ _update_system() {
[[ "$ERR" ]] && echo "Error during system package updates: $ERR"
}

# Create required folders and set correct permissions
_configure_permissions() {
[[ "$VERBOSE" = true ]] && echo "Creating required folders and setting \
correct permissions"
mkdir -p "$INSTALL_DIR"/{public,data}
chown -R www-data:www-data "$INSTALL_DIR"
}

# Ask the user for mysql `root` password and configure mysql in unattended mode
_configure_mariadb_server() {
read -sp 'Please type a `root` password for mysql database: ' \
@@ -163,14 +173,6 @@ associated login"
unset SQL; unset MYSQL_ROOT_USER; unset MYSQL_ROOT_PASSWORD; unset QUERY
}

# Create required folders and set correct permissions
_configure_permissions() {
[[ "$VERBOSE" = true ]] && echo "Creating required folders and setting \
correct permissions"
mkdir -p "$INSTALL_DIR"/{public,data}
chown -R www-data:www-data "$INSTALL_DIR"
}

# Configure Apache2 to run the website
_configure_apache2() {
# Ask the user for Apache2 FQDN hostname


正在加载...
取消
保存