find "$fod_dir/"-not-user fod -execchown fod: {}\;
find "$fod_dir/"-not-user fod -execchown fod: {}\;
set-e
set-e
#cd /srv/flowspy/
#cd /srv/flowspy/
cd"$fod_dir"
cd"$fod_dir"
(
(
cd flowspy
cd flowspy
if[!-e settings.py ];then
if[!-e settings.py ];then
cp-f settings.py.dist settings.py
cp-f settings.py.dist settings.py
patch settings.py < settings.py.patch
patch settings.py < settings.py.patch
sed-i"s#/srv/flowspy#$fod_dir#""settings.py"
sed-i"s#/srv/flowspy#$fod_dir#""settings.py"
fi
fi
)
)
if["$install_basesw"= 1 ];then#are we running in --both mode, i.e. for the venv init is run for the first time, i.e. the problematic package having issues with to new setuptools is not yet installed?
if["$install_basesw"= 1 ];then#are we running in --both mode, i.e. for the venv init is run for the first time, i.e. the problematic package having issues with to new setuptools is not yet installed?