mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
commit
5e79c17310
2 changed files with 6 additions and 4 deletions
|
@ -56,9 +56,10 @@ set_permission() {
|
||||||
chmod -R g-wx,o= $final_path
|
chmod -R g-wx,o= $final_path
|
||||||
setfacl -m user:www-data:rX $final_path
|
setfacl -m user:www-data:rX $final_path
|
||||||
setfacl -m user:www-data:rX $final_path/seafile-server-$seafile_version
|
setfacl -m user:www-data:rX $final_path/seafile-server-$seafile_version
|
||||||
setfacl -m user:www-data:rX $final_path/seafile-server-latest/seahub
|
# At install time theses directory are not available
|
||||||
setfacl -R -m user:www-data:rX $final_path/seafile-server-latest/seahub/media
|
test -e $final_path/seafile-server-latest/seahub && setfacl -m user:www-data:rX $final_path/seafile-server-latest/seahub
|
||||||
setfacl -R -m user:www-data:rX $final_path/seahub-data
|
test -e $final_path/seafile-server-latest/seahub/media && setfacl -R -m user:www-data:rX $final_path/seafile-server-latest/seahub/media
|
||||||
|
test -e $final_path/seahub-data && setfacl -R -m user:www-data:rX $final_path/seahub-data
|
||||||
|
|
||||||
# check that this directory exist because in some really old install the data could still be in the main seafile directory
|
# check that this directory exist because in some really old install the data could still be in the main seafile directory
|
||||||
# We also check at the install time when data directory is not already initialised
|
# We also check at the install time when data directory is not already initialised
|
||||||
|
|
|
@ -102,7 +102,8 @@ ynh_script_progression --message="Configuring application..." --weight=3
|
||||||
# Run install script
|
# Run install script
|
||||||
mv_expect_scripts
|
mv_expect_scripts
|
||||||
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_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd"
|
set_permission
|
||||||
|
sudo -u $seafile_user $expect_scripts_dir/install.exp "$final_path/seafile-server-$seafile_version" "$server_name" "$domain" "$fileserver_port" "$db_pwd"
|
||||||
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue