mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Fix sudo linter error
This commit is contained in:
parent
eb4cf49084
commit
1c9a1c5ba7
2 changed files with 5 additions and 5 deletions
|
@ -92,8 +92,8 @@ chmod -R o-rwx "$final_path"
|
|||
chown -R $app:www-data "$final_path"
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_exec_warn_less sudo -u $app mv ./www_data/* .
|
||||
ynh_exec_warn_less sudo -u $app ./module/install.sh
|
||||
ynh_exec_warn_less mv ./www_data/* .
|
||||
ynh_exec_warn_less ./module/install.sh
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < db/table.sql
|
||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < db/demo.sql
|
||||
popd
|
||||
|
|
|
@ -60,7 +60,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
|||
|
||||
# Void and recreate final_path
|
||||
ynh_secure_remove --file="$final_path"
|
||||
ynh_exec_warn_less sudo mkdir "$final_path"
|
||||
ynh_exec_warn_less mkdir "$final_path"
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
|
@ -75,8 +75,8 @@ chmod -R o-rwx "$final_path"
|
|||
chown -R $app:www-data "$final_path"
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_exec_warn_less sudo -u $app mv ./www_data/* .
|
||||
ynh_exec_warn_less sudo -u $app ./module/install.sh
|
||||
ynh_exec_warn_less mv ./www_data/* .
|
||||
ynh_exec_warn_less ./module/install.sh
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue