fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Avoiding post phase in spec file

This commit is contained in:
Juan Manuel Parrilla 2014-11-14 09:31:25 +01:00
parent 1ce3912505
commit 3067b5baf4
1 changed files with 10 additions and 10 deletions

View File

@ -55,26 +55,26 @@ cp -r %{_gitdir}/rpm/scripts/shelfzilla $RPM_BUILD_ROOT%{_app_dir}/init/
# -------------------------------------------------------------------------------------------- #
%post
## Install init script
mv %{_app_dir}/init/shelfzilla %{_init_path}/
chmod 775 %{_init_path}/shelfzilla
chkconfig --add shelfzilla
rmdir %{_app_dir}/init/
#mv %{_app_dir}/init/shelfzilla %{_init_path}/
#chmod 775 %{_init_path}/shelfzilla
#chkconfig --add shelfzilla
#rmdir %{_app_dir}/init/
## Npm install
cd %{_app_dir} && npm install --production
#cd %{_app_dir} && npm install --production
## pip install
pip install -r %{_app_dir}/config/production/requirements.txt
#pip install -r %{_app_dir}/config/production/requirements.txt
## Migrate
python2.7 %{_app_dir}/manage.py migrate --no-initial-data
#python2.7 %{_app_dir}/manage.py migrate --no-initial-data
## Bower
cd %{_app_dir}
bower install --allow-root
#cd %{_app_dir}
#bower install --allow-root
## Collect static
python2.7 manage.py collectstatic --clear --noinput
#python2.7 manage.py collectstatic --clear --noinput
# -------------------------------------------------------------------------------------------- #
# pre-uninstall section: