mirror of
https://github.com/ZeJMaN/guacamole_ynh.git
synced 2025-06-07 13:25:30 +02:00
configure nginx before compile guacamole
This commit is contained in:
parent
8e889cfcd3
commit
63163331ad
@ -67,6 +67,9 @@ if [ -f $SRC_DIR/src_dep.lst ]
|
||||
sudo apt-get -y install `cat $SRC_DIR/src_dep.lst` -y -qq
|
||||
fi
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
|
||||
tar -xzf ../sources/guacamole-server-0.9.9.tar.gz -C $SRC_DIR
|
||||
@ -88,15 +91,6 @@ sudo ln -s /etc/guacamole/guacamole.war /var/lib/jetty8/webapps/
|
||||
sudo cp ../mysql-connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar /etc/guacamole/lib/
|
||||
sudo cp ../guacamole-auth-jdbc-0.9.9/mysql/guacamole-auth-jdbc-mysql-0.9.9.jar /etc/guacamole/extensions/
|
||||
sudo cp ../guacamole-auth-ldap-0.9.9/mysql/guacamole-auth-ldap-0.9.9.jar /etc/guacamole/extensions/
|
||||
## manual initialisation SQL (remove in the futur)
|
||||
#mysql -u root -pMYSQLROOTPASSWORD
|
||||
#create database guacamole_db;
|
||||
#create user 'guacamole_user'@'localhost' identified by 'PASSWORD';
|
||||
#GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost';
|
||||
#flush privileges;
|
||||
#quit
|
||||
#cat guacamole-auth-jdbc-0.9.9/mysql/schema/*.sql | mysql -u root -pMYSQLROOTPASSWORD guacamole_db
|
||||
|
||||
|
||||
sudo rm -rf /usr/share/jetty8/.guacamole
|
||||
sudo ln -s /etc/guacamole /usr/share/jetty8/.guacamole
|
||||
@ -115,9 +109,6 @@ sudo mv $SRC_DIR/guacamole.properties /etc/guacamole
|
||||
# Load initial SQL into the new database
|
||||
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < "$SRC_DIR/guacamole-auth-jdbc-0.9.9/mysql/schema/001-create-schema.sql"
|
||||
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < "$SRC_DIR/guacamole-auth-jdbc-0.9.9/mysql/schema/002-create-admin-user.sql"
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
# clean
|
||||
cd
|
||||
|
Loading…
x
Reference in New Issue
Block a user