mirror of
https://github.com/YunoHost-Apps/endi_ynh.git
synced 2024-09-03 18:35:54 +02:00
fix: pushd to final_path
This commit is contained in:
parent
6f73da501b
commit
37f1340b38
1 changed files with 11 additions and 7 deletions
|
@ -64,7 +64,7 @@ __ynh_endi_build() {
|
||||||
|
|
||||||
pushd "$final_path/endi" 2>&1
|
pushd "$final_path/endi" 2>&1
|
||||||
ynh_exec_as $app "$final_path/venv/bin/python3" ./setup.py install 2>&1
|
ynh_exec_as $app "$final_path/venv/bin/python3" ./setup.py install 2>&1
|
||||||
popd
|
popd 2>&1
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
@ -72,14 +72,18 @@ __ynh_endi_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
__ynh_endi_migratedb() {
|
__ynh_endi_migratedb() {
|
||||||
|
pushd "$final_path" 2>&1
|
||||||
ynh_exec_as $app "$final_path/venv/bin/endi-admin" "$final_path/endi.ini" \
|
ynh_exec_as $app "$final_path/venv/bin/endi-admin" "$final_path/endi.ini" \
|
||||||
syncdb
|
syncdb
|
||||||
}
|
popd 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
__ynh_endi_add_admin() {
|
__ynh_endi_add_admin() {
|
||||||
|
pushd "$final_path" 2>&1
|
||||||
ynh_exec_as $app "$final_path/venv/bin/endi-admin" "$final_path/endi.ini" \
|
ynh_exec_as $app "$final_path/venv/bin/endi-admin" "$final_path/endi.ini" \
|
||||||
useradd --group=admin --user="admin" --pwd="$password" --email="admin@$domain"
|
useradd --group=admin --user="admin" --pwd="$password" --email="admin@$domain"
|
||||||
}
|
popd 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue