소스 검색

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


불러오는 중...
취소
저장