Use symbolic link for seafile_data path

This commit is contained in:
Josué Tille 2020-04-30 17:59:45 +02:00
parent 6e2975f454
commit d9d25f57e7
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -72,6 +72,7 @@ mkdir -p $final_path
mkdir -p $final_path/installed mkdir -p $final_path/installed
mkdir -p $final_path/logs mkdir -p $final_path/logs
mkdir -p $seafile_data mkdir -p $seafile_data
ln -s $seafile_data $final_path/seafile_data
# Create User # Create User
ynh_script_progression --message="Configuring system user..." ynh_script_progression --message="Configuring system user..."
@ -98,7 +99,6 @@ ynh_script_progression --message="Configuring application..." --weight=3
chmod +x expect_scripts/install.exp chmod +x expect_scripts/install.exp
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
expect_scripts/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$seafile_data" "$fileserver_port" "$db_pwd" expect_scripts/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$seafile_data" "$fileserver_port" "$db_pwd"
echo $seafile_data > $final_path/ccnet/seafile.ini
# Update seafile config # Update seafile config
ynh_replace_string --match_string http:// --replace_string https:// --target_file $final_path/conf/ccnet.conf ynh_replace_string --match_string http:// --replace_string https:// --target_file $final_path/conf/ccnet.conf