升级前的环境变量设置

升级前的环境变量设置

VARIABLE Default Description
WEB_USER www-data Webserver user
WEB_GROUP www-data Webserver user’s group
OJS_ROOT_PATH /var/www OJS root folder
OJS_WEB_PATH /var/www/html OJS web root folder
OJS_DB_HOST db Database host’s name
OJS_DB_USER ojs Database user
OJS_DB_PASSWORD ojsPwd Database password
OJS_DB_NAME ojs Database name
OJS_BACKUP_PATH /srv/backup/ojs Folder to store your backups
OJS_VERSION ojs-3.3.0-8 Version as in the ojs filename
DATE YYYYMMDD-HH:MM:SS The current system date and time
重写以下命令,使用正确的安装值设置这些变量:
$ WEB_USER="www-data" && \
WEB_GROUP="www-data" && \
OJS_ROOT_PATH="/var/www" && \
OJS_WEB_PATH="/var/www/html" && \
OJS_DB_HOST="db" && \
OJS_DB_USER="ojs" && \
OJS_DB_PASSWORD="ojsPwd" && \
OJS_DB_NAME="ojs" && \
OJS_BACKUP_PATH="/srv/backup/ojs" && \
OJS_VERSION="ojs-3.3.0-8" && \
OJS_PUBLIC_PATH="$OJS_WEB_PATH/public" && \
OJS_PRIVATE_PATH="$OJS_ROOT_PATH/files" && \
DATE=$(date "+%Y%m%d-%H:%M:%S")