Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
:fix install: corrections après test de maj
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Quinton committed Apr 6, 2020
1 parent dc4df78 commit 729d3f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gacl.ini.php
.settings
.settings/*
*/templates_c/*
img/*
img/*tif
display/templates_c/*
clear_templates_c.sh
test/*
Expand Down
2 changes: 2 additions & 0 deletions img/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
order deny,all
deny from all
3 changes: 0 additions & 3 deletions install/pgsql/alter-2.2-2.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ ALTER table otolithe.piece add column uuid uuid default gen_random_uuid();
COMMENT ON COLUMN otolithe.photolecture.commentaire IS E'Commentaire sur la lecture';
-- ddl-end --

ALTER TABLE otolithe.metadatatype ALTER COLUMN is_array SET DEFAULT f;
-- ddl-end --


-- [ Created constraints ] --
-- object: logingestion_pk | type: CONSTRAINT --
Expand Down
9 changes: 5 additions & 4 deletions install/upgrade-2.2-2.3.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ cp otolithe/param/param.inc.php $VERSION/param/
chgrp www-data $VERSION/param/param.inc.php

# keys for tokens
if [ -e otolithe/param/otolithe ]
if [ -e otolithe/param/id_otolithe ]
then
cp otolithe/param/otolithe* $VERSION/param/
chown www-data $VERSION/param/otolithe
cp otolithe/param/id_otolithe* $VERSION/param/
chown www-data $VERSION/param/id_otolithe
fi

#replacement of symbolic link
Expand All @@ -47,12 +47,13 @@ chmod 750 /var/www/html/otolithe

# assign rights to new folder
mkdir $VERSION/display/templates_c
mkdir img/
chmod -R 750 $VERSION
chgrp -R www-data $VERSION

# update rights to specific software folders
chmod -R 770 $VERSION/display/templates_c
chmod -R 770 $VERSION/temp
chmod -R 770 $VERSION/img
# update php.ini file
PHPVER=`php -v|head -n 1|cut -c 5-7`
PHPINIFILE="/etc/php/$PHPVER/apache2/php.ini"
Expand Down

0 comments on commit 729d3f7

Please sign in to comment.