mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Install moviepy in user mode
This commit is contained in:
parent
765989f499
commit
fc6d25f4b4
3 changed files with 13 additions and 9 deletions
|
@ -60,7 +60,11 @@ install_source() {
|
||||||
install_dependance() {
|
install_dependance() {
|
||||||
ynh_install_app_dependencies python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache \
|
ynh_install_app_dependencies python2.7 python-pip libpython2.7 python-setuptools python-ldap python-urllib3 python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev ffmpeg python-memcache \
|
||||||
libjpeg62-turbo-dev zlib1g-dev # For building pillow
|
libjpeg62-turbo-dev zlib1g-dev # For building pillow
|
||||||
pip install --upgrade Pillow 'moviepy<1.0'
|
if [[ "$seafile_user" == seafile ]] && [[ "$final_path" == "/opt/yunohost/$app" ]] ; then
|
||||||
|
sudo -u $seafile_user pip install --user --upgrade Pillow 'moviepy<1.0'
|
||||||
|
else
|
||||||
|
pip install --upgrade Pillow 'moviepy<1.0'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ynh_clean_setup () {
|
ynh_clean_setup () {
|
||||||
|
|
|
@ -63,6 +63,9 @@ admin_email=$(yunohost user info $admin | grep mail: | sed "s/mail: //g")
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# Create User
|
||||||
|
ynh_system_user_create $seafile_user $final_path
|
||||||
|
|
||||||
# Check dependencies
|
# Check dependencies
|
||||||
install_dependance
|
install_dependance
|
||||||
|
|
||||||
|
@ -84,9 +87,6 @@ ynh_mysql_create_db ccnetdb "$dbuser" "$db_pwd"
|
||||||
ynh_mysql_create_db seafiledb "$dbuser" "$db_pwd"
|
ynh_mysql_create_db seafiledb "$dbuser" "$db_pwd"
|
||||||
ynh_mysql_create_db seahubdb "$dbuser" "$db_pwd"
|
ynh_mysql_create_db seahubdb "$dbuser" "$db_pwd"
|
||||||
|
|
||||||
# Create User
|
|
||||||
ynh_system_user_create $seafile_user $final_path
|
|
||||||
|
|
||||||
# Run install script
|
# Run install script
|
||||||
chmod +x expect_scripts/install.exp
|
chmod +x expect_scripts/install.exp
|
||||||
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
|
chmod +x $final_path/seafile-server-$seafile_version/setup-seafile-mysql.sh
|
||||||
|
|
|
@ -27,9 +27,6 @@ ynh_webpath_available $domain $path_url || ynh_die "$domain/$path_url is not ava
|
||||||
# STANDARD RESTORATION STEPS
|
# STANDARD RESTORATION STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore dependencies
|
|
||||||
install_dependance
|
|
||||||
|
|
||||||
# Restore all config and data
|
# Restore all config and data
|
||||||
ynh_restore
|
ynh_restore
|
||||||
|
|
||||||
|
@ -39,6 +36,9 @@ get_configuration
|
||||||
# Create user if it need
|
# Create user if it need
|
||||||
[[ $seafile_user = "seafile" ]] && ynh_system_user_create $seafile_user $final_path
|
[[ $seafile_user = "seafile" ]] && ynh_system_user_create $seafile_user $final_path
|
||||||
|
|
||||||
|
# Restore dependencies
|
||||||
|
install_dependance
|
||||||
|
|
||||||
# Restore mysql dump
|
# Restore mysql dump
|
||||||
dbuser=seafile
|
dbuser=seafile
|
||||||
ynh_mysql_create_db ccnetdb "$dbuser" "$db_pwd"
|
ynh_mysql_create_db ccnetdb "$dbuser" "$db_pwd"
|
||||||
|
|
Loading…
Add table
Reference in a new issue