mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
[fix]binary comparison not working on strings o_o'
This commit is contained in:
parent
d4153bff24
commit
c85817edf5
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ admin_user=$3
|
|||
|
||||
|
||||
# Check user parameter if not empty
|
||||
if [[ $admin_user -ne '' ]]; then
|
||||
if [[ $admin_user != '' ]]; then
|
||||
sudo yunohost user list --json | grep -qi "\"username\": \"$admin_user\""
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
echo "Wrong user"
|
||||
|
@ -45,7 +45,7 @@ sudo sed -i "s/yunopass/$db_pwd/g" $final_path/data/config.php
|
|||
sudo sed -i "s/yunobase/$db_user/g" $final_path/data/config.php
|
||||
sudo sed -i "s/yunosalt/$app_salt/g" $final_path/data/config.php
|
||||
sudo sed -i "s@yunopath@$path@g" $final_path/data/config.php
|
||||
if [[ $admin_user -ne '' ]]; then
|
||||
if [[ $admin_user != '' ]]; then
|
||||
sudo sed -i "s/yunoadminuser/$admin_user/g" $final_path/data/config.php
|
||||
else
|
||||
sudo sed -i '/yunoadminuser/d' $final_path/data/config.php
|
||||
|
|
Loading…
Reference in a new issue