mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-13 00:50:01 +00:00
Update seafile-install.sh
This commit is contained in:
parent
916a5f54dd
commit
9092e13601
@ -33,7 +33,7 @@ SEAHUB_DB="seahub_db"
|
||||
DB_USER="seafile"
|
||||
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)
|
||||
ADMIN_EMAIL="admin@localhost.local"
|
||||
ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)
|
||||
ADMIN_PASS="helper-scripts"
|
||||
sudo -u mysql mysql -s -e "CREATE DATABASE $CCNET_DB CHARACTER SET utf8;"
|
||||
sudo -u mysql mysql -s -e "CREATE DATABASE $SEAFILE_DB CHARACTER SET utf8;"
|
||||
sudo -u mysql mysql -s -e "CREATE DATABASE $SEAHUB_DB CHARACTER SET utf8;"
|
||||
@ -189,28 +189,28 @@ sed -i "0,/127.0.0.1/s/127.0.0.1/0.0.0.0/" /opt/seafile/conf/gunicorn.conf.py
|
||||
msg_ok "Conf files adjusted"
|
||||
|
||||
msg_info "Setting up Seafile"
|
||||
$STD su - seafile -c "bash /opt/seafile/seafile-server-latest/seafile.sh start"
|
||||
$STD su - seafile -c "/opt/seafile/seafile-server-latest/seafile.sh start"
|
||||
$STD su - seafile -c "expect <<EOF
|
||||
spawn bash /opt/seafile/seafile-server-latest/seahub.sh start
|
||||
spawn /opt/seafile/seafile-server-latest/seahub.sh start
|
||||
expect {
|
||||
\"What is the email for the admin account\" {
|
||||
send \"$ADMIN_EMAIL\r\"
|
||||
\"email\" {
|
||||
send \"admin@localhost.local\r\"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
\"What is the password for the admin account\" {
|
||||
send \"$ADMIN_PASS\r\"
|
||||
\"password\" {
|
||||
send \"helper-scripts\r\"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
\"Enter the password again:\" {
|
||||
send \"$ADMIN_PASS\r\"
|
||||
\"password again\" {
|
||||
send \"helper-scripts\r\"
|
||||
}
|
||||
}
|
||||
expect eof
|
||||
EOF"
|
||||
$STD su - seafile -c "bash /opt/seafile/seafile-server-latest/seahub.sh stop"
|
||||
$STD su - seafile -c "bash /opt/seafile/seafile-server-latest/seafile.sh stop"
|
||||
$STD su - seafile -c "/opt/seafile/seafile-server-latest/seahub.sh stop"
|
||||
$STD su - seafile -c "/opt/seafile/seafile-server-latest/seafile.sh stop"
|
||||
msg_ok "Seafile setup"
|
||||
|
||||
msg_info "Creating Services"
|
||||
|
Loading…
Reference in New Issue
Block a user