mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
commit
592bb8623b
4 changed files with 37 additions and 17 deletions
32
README.md
32
README.md
|
@ -1,6 +1,9 @@
|
||||||
# PyInventory for YunoHost
|
# PyInventory for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/pyinventory)  
|
[](https://dash.yunohost.org/appci/app/pyinventory) [](https://ci-apps-dev.yunohost.org/ci/) [](https://dash.yunohost.org/appci/app/pyinventory)
|
||||||
|
|
||||||
|
[](https://github.com/YunoHost-Apps/pyinventory_ynh/actions/workflows/pytest.yml) [](https://codecov.io/gh/YunoHost-Apps/pyinventory_ynh)
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=pyinventory)
|
[](https://install-app.yunohost.org/?app=pyinventory)
|
||||||
|
|
||||||
> *This package allows you to install PyInventory quickly and simply on a YunoHost server.
|
> *This package allows you to install PyInventory quickly and simply on a YunoHost server.
|
||||||
|
@ -10,16 +13,33 @@ Pull requests welcome ;)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
[PyInventory](https://github.com/jedie/PyInventory) is a libre web-based management to catalog things including state and location etc. using Python/Django.
|
[PyInventory](https://github.com/jedie/PyInventory) is a libre web-based management to catalog things including state and location etc. using [Python](https://www.python.org/)/[Django](https://www.djangoproject.com/).
|
||||||
|
|
||||||
This package for YunoHost used the Python packeage [django-yunohost-integration](https://github.com/jedie/django_yunohost_integration)
|
This package for YunoHost used [django-yunohost-integration](https://github.com/YunoHost-Apps/django_yunohost_integration)
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|
More screenshots are here: [jedie.github.io/tree/master/screenshots/PyInventory](https://github.com/jedie/jedie.github.io/blob/master/screenshots/PyInventory/README.creole)
|
||||||

|
|
||||||

|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
More screenshots are here: [jedie.github.io/tree/master/screenshots/PyInventory](https://github.com/jedie/jedie.github.io/blob/master/screenshots/PyInventory/README.creole)
|
||||||
|
|
||||||
## Settings and upgrades
|
## Settings and upgrades
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ ynh_script_progression --message="Install project via pip..." --weight=80
|
||||||
|
|
||||||
python3 -m venv "${final_path}/venv"
|
python3 -m venv "${final_path}/venv"
|
||||||
cp ../conf/requirements.txt "$final_path/requirements.txt"
|
cp ../conf/requirements.txt "$final_path/requirements.txt"
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#run source in a 'sub shell'
|
#run source in a 'sub shell'
|
||||||
(
|
(
|
||||||
|
@ -204,9 +204,9 @@ yunohost service add $app --description="Web based management to catalog things"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
chown -R "$app" "$public_path"
|
chown -R "$app:" "$public_path"
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
|
|
@ -70,8 +70,8 @@ ynh_system_user_create --username=$app --home_dir="$final_path" --use_shell
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R "$app" "$public_path"
|
chown -R "$app:" "$public_path"
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
@ -129,7 +129,7 @@ yunohost service add $app --description="Web based management to catalog things"
|
||||||
|
|
||||||
mkdir -p "$log_path"
|
mkdir -p "$log_path"
|
||||||
touch "${log_file}"
|
touch "${log_file}"
|
||||||
chown -R "$app" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,7 +89,7 @@ ynh_script_progression --message="Upgrade project via pip..." --weight=80
|
||||||
|
|
||||||
python3 -m venv --upgrade "${final_path}/venv"
|
python3 -m venv --upgrade "${final_path}/venv"
|
||||||
cp ../conf/requirements.txt "$final_path/requirements.txt"
|
cp ../conf/requirements.txt "$final_path/requirements.txt"
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#run source in a 'sub shell'
|
#run source in a 'sub shell'
|
||||||
(
|
(
|
||||||
|
@ -196,9 +196,9 @@ yunohost service add $app --description="Web based management to catalog things"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app" "$log_path"
|
chown -R "$app:" "$log_path"
|
||||||
chown -R "$app" "$public_path"
|
chown -R "$app:" "$public_path"
|
||||||
chown -R "$app" "$final_path"
|
chown -R "$app:" "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Start pyinventory via systemd
|
# Start pyinventory via systemd
|
||||||
|
|
Loading…
Add table
Reference in a new issue