mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix small install issues
This commit is contained in:
parent
b37246b358
commit
2bc07edb1a
2 changed files with 7 additions and 4 deletions
|
@ -47,8 +47,8 @@ install_source() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_permission() {
|
set_permission() {
|
||||||
chown -R "$app:$app" "$install_dir"/conf
|
chown -R "$app:$app" "$install_dir"/{conf,ccnet}
|
||||||
chmod -R u+rwX,g-w,o= "$install_dir"/conf
|
chmod -R u+rwX,g-w,o= "$install_dir"/{conf,ccnet}
|
||||||
chown -R "$app:$app" "$install_dir"/seafile_image/opt/seafile
|
chown -R "$app:$app" "$install_dir"/seafile_image/opt/seafile
|
||||||
chmod -R u+rwX,g-w,o= "$install_dir"/seafile_image/opt/seafile
|
chmod -R u+rwX,g-w,o= "$install_dir"/seafile_image/opt/seafile
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,11 @@ ynh_script_progression --message="Configuring application..." --weight=3
|
||||||
# Run install script
|
# Run install script
|
||||||
set_permission
|
set_permission
|
||||||
ynh_replace_special_string --match_string='seafile_config.seafile_dir = seafile_config.validate_seafile_dir(seafile_dir)' \
|
ynh_replace_special_string --match_string='seafile_config.seafile_dir = seafile_config.validate_seafile_dir(seafile_dir)' \
|
||||||
--replace_string 'seafile_config.seafile_dir = seafile_dir' \
|
--replace_string='seafile_config.seafile_dir = seafile_dir' \
|
||||||
--target_file "$seafile_code/setup-seafile-mysql.py"
|
--target_file="$seafile_code/setup-seafile-mysql.py"
|
||||||
|
ynh_replace_special_string --match_string="Utils.error('Ccnet config dir \\\"%s\\\" already exists.' % ccnet_config.ccnet_dir)" \
|
||||||
|
--replace_string='patched = 1' \
|
||||||
|
--target_file="$seafile_code/setup-seafile-mysql.py"
|
||||||
run_seafile_cmd bash "/opt/seafile/seafile-server-$seafile_version/setup-seafile-mysql.sh" auto \
|
run_seafile_cmd bash "/opt/seafile/seafile-server-$seafile_version/setup-seafile-mysql.sh" auto \
|
||||||
--server-name "$server_name" \
|
--server-name "$server_name" \
|
||||||
--server-ip "$domain" \
|
--server-ip "$domain" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue